Makaronodentro
Makaronodentro

Reputation: 957

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?

Upvotes: 0

Views: 51

Answers (1)

Jake
Jake

Reputation: 13761

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

Upvotes: 1

Related Questions