material-components-ios
material-components-ios copied to clipboard
[MDCActionSheetController] Unable to apply corner radius for ActionSheet view
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!