make curve on the corners for uiview in swift code example
Example: 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
}
}