material-components-ios icon indicating copy to clipboard operation
material-components-ios copied to clipboard

[MDCActionSheetController] Unable to apply corner radius for ActionSheet view

Open autopointer-vitalb opened this issue 5 years ago • 0 comments

Hi, I'm trying successless to round the ActionSheet's top corners:

let actionSheetCall = MDCActionSheetController(title: "Title", message: "Message")
actionSheetCall.contentEdgeInsets.left = -20
                    
let mask = CAShapeLayer()
let path = UIBezierPath(roundedRect: bounds, byRoundingCorners: [.topLeft, .topRight], cornerRadii: CGSize(width: 5.0, height: 5.0))
mask.path = path.cgPath
actionSheetCall.view.layer.mask = mask

Does anyone know how I can make a corner radius for top corners of ActionSheet? Thanks!

autopointer-vitalb avatar Aug 24 '20 18:08 autopointer-vitalb