Makaronodentro Makaronodentro - 1 year ago 69
Swift Question

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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download