uiview rounded corners swift 4 code example
Example 1: add corner radius to uiview swift
view.layer.cornerRadius = 25
view.layer.masksToBounds = true
Example 2: swift corner radious of view controller
extension UIView {
func makeCorner(withRadius radius: CGFloat) {
self.layer.cornerRadius = radius
self.layer.masksToBounds = true
self.layer.isOpaque = false
}
}