Remove masked corners

I know how to add masked corners to UIView: topContainer.layer.maskedCorners = [.layerMaxXMinYCorner, .layerMinXMinYCorner] But I can't find a solution to remove them. I need all corners of my UIView to become rounded again.

Did you try:

maskedCorners = []
Accepted Answer

You just need to specify all the corners. maskedCorners = [minX/minY, maxX/minY, minX/maxY, maxX/maxY].

Remove masked corners
 
 
Q