Makaronodentro Makaronodentro - 24 days ago 7
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

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