Swift - Setting corner radius on image nested in UIButton
An UIButton
has an UIImageView
on it. So to set corner, simply set radius to the layer of the image view
titleButton.imageView.layer.cornerRadius = 5
An UIButton
has an UIImageView
on it. So to set corner, simply set radius to the layer of the image view
titleButton.imageView.layer.cornerRadius = 5