button rounded corners swift code example
Example 1: add buton border swift
button.layer.borderWidth = 1
button.layer.borderColor = UIColor.black.cgColor
Example 2: round courners of uibutton
yourButton.layer.cornerRadius = 10; // this value vary as per your desire
yourButton.clipsToBounds = YES;