iOS – How to round the corners of a button

In this post I’m going to cover how to round the corners of a button in iOS.

I’ve seen a lot of solutions for this, but I found a really simple one.

First of all, you need to select the button and then go to the Object Inspector and click on the + button, then you need to create the keypath: layer.cornerRadius type as a number, then add the value 4 or the value you want as shown below.

Captura de Tela 2016-02-03 às 12.11.12

After that you can run your app and see the result.

PS: you can only see the result when running the app

That’s all for today. See you in the nexts posts