Answers for "border corner radius swiftui"

2

add corner radius to uiview swift

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

how to add corner in swiftui

extension UIView {
   func roundCorners(corners: UIRectCorner, radius: CGFloat) {
        let path = UIBezierPath(roundedRect: bounds, byRoundingCorners: corners, cornerRadii: CGSize(width: radius, height: radius))
        let mask = CAShapeLayer()
        mask.path = path.cgPath
        layer.mask = mask
    }
}
Posted by: Guest on May-24-2021

Code answers related to "border corner radius swiftui"

Code answers related to "Swift"

Browse Popular Code Answers by Language