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.
Remove masked corners
Did you try:
maskedCorners = []
You just need to specify all the corners. maskedCorners = [minX/minY, maxX/minY, minX/maxY, maxX/maxY].