The radius of curvature for the edges and corners of the box. Animatable.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The minimum (and default) corner radius is
0, specifying square corners. Set this property to a nonzero value to add rounded edges and corners to the box. Setting a corner radius of less than zero creates an empty geometry.
The maximum corner radius is half the box’s smallest dimension. For example, if a box’s width and length are both
5 and its height is
10, its maximum corner radius is
2. With these dimensions, the box’s four rounded vertical edges join to form a cylinder and its vertical faces disappear. Increasing the corner radius beyond the maximum has no visible effect.
You can animate changes to this property’s value. See Animating SceneKit Content.