Benjamin Jimenez
Benjamin Jimenez

Reputation: 984

Storyboard: Enable advanced UI configurations

I downloaded a GitHub project and I found some of the elements had configurations options that I haven't seen before.

The left one are the advanced configurations, as you can see you can set the corner radius and see the result immediately in the storyboard

How can I enable those options?

enter image description hereenter image description here

Upvotes: 0

Views: 52

Answers (1)

pnavk
pnavk

Reputation: 4632

I believe this is done by creating IBInspectable attributes for properties you want to be able to adjust via the Attribute Inspector in Interface Builder.

Check out this in the apple documentation: https://developer.apple.com/library/ios/recipes/xcode_help-IB_objects_media/Chapters/CreatingaLiveViewofaCustomObject.html

Step 10 talks about the IBInspectable attributes.

Upvotes: 1

Related Questions