ios rounded corners uiviewcontroller 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
}
}