Answers for "swift make rounded uiview"

1

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
    }
}
Posted by: Guest on April-13-2020
2

add corner radius to uiview swift

view.layer.cornerRadius = 25
view.layer.masksToBounds = true
Posted by: Guest on April-03-2020

Code answers related to "swift make rounded uiview"

Code answers related to "Swift"

Browse Popular Code Answers by Language