Use mask() Modifier for Clipping in SwiftUI Use the mask() modifier to apply a custom shape or view as a clipping mask. Previous Next