iOS Notes 11

iOS Notes 11 : How to create a circle button with shadow?

Kuray Ogun
FreakyCoder Software Blog
1 min readMay 27, 2017

--

Hey,

Circle buttons are great in almost any design. In Swift 3, it is really easy to make a circle button from UIButton.

First, you need to put a UIButton on your storyboard, then initialize it in your ViewController.

UIButton’s layer let you perfect circle button with shadow.

You can change shadow’s color, its radius or opacity. Moreover, you can set another shapes with corderRadius method. You do not have to set a perfect circle button.

It is easy right ? :)

If you have any question, ask me :)

--

--