Search code examples
swiftuiviewibinspectable

Swift, is it possible to have an IBInspectable block?


I have approximately 50 properties in my view that I must make inspectable.

Is there a way to do so without declaring it explicitly for each one?


Solution

  • Unfortunately, no. @IBDesignable and @IBInspectable must be declared explicitly for each class/property you wish to show up in interface builder.