iOS Masking views Apart from cornerRadius, we can easily mask any view with any shape and path using UIBezierPath and CAShapeLayer. This provides us much more flexibility in laying out our subviews and making them as odd as possible.