Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #corner #radious #view #controller
ADD COMMENT
Topic
Name
9+3 =