I just started learning iOS development, cannot find how to make simple rounded button. I find resources for old versions. Do I need to set a custom background for a button? In
import UIKit @IBDesignable class MyButton: UIButton { override func layoutSubviews() { super.layoutSubviews() } func updateCornerRadius(radius:CGFloat) { layer.cornerRadius = radius } @IBInspectable var cornerRadius:CGFloat = 0{ didSet{ updateCornerRadius(radius: cornerRadius) } } }