how to change the corner radius of a button swift code example
Example 1: add buton border swift
button.layer.borderWidth = 1
button.layer.borderColor = UIColor.black.cgColor
Example 2: ios rounded button
button.layer.cornerRadius = button.frame.size.height / 2
// must be in the viewDidLoad func