Drag a button object on the Main.storyboard view.

1

Set a background color in the attributes inspector

2

In the Identity Inspector add a user defined runtime attribute (pressing +) like:

layer.cornerRadius, with a numeric value, for example of 10.

3

Leave a Reply