The radius to use when drawing rounded corners for the layer’s background. Animatable.
- iOS 3.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Core Animation
Setting the radius to a value greater than
0 causes the layer to begin drawing rounded corners on its background. By default, the corner radius does not apply to the image in the layer’s
contents property; it applies only to the background color and border of the layer. However, setting the
masks property to
true causes the content to be clipped to the rounded corners.
The default value of this property is