How to create a custom type UIButton programatically in Swift?

We can create a UIButton programatically in Swift using few lines of code. When creating custom type button, the initial frame is set to (0,0,0,0). We have to specify the frame for the custom type button manually.

Leave a Reply