Clips this view to its bounding frame, with the specified corner radius.
- iOS 13.0+Beta
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
- watchOS 6.0+Beta
- Xcode 11.0+Beta
A Boolean value that indicates whether smoothing is applied to the edges of the clipping rectangle.
A view that clips this view to its bounding frame.
By default, a view’s bounding frame only affects its layout, so any content that extends beyond the edges of the frame remains visible. Use the
corner modifier to hide any content that extends beyond these edges while applying a corner radius.
The following code applies a corner radius of 20 to a square image: