SwiftUI ⟩ view ⟩ drawing ⟩ mask
view.mask()
view.inverseMask(): custom extension
// .mask() vs .clipShape() view.mask(Circle().opacity(0.5)) // with opacity view.clipShape(Circle()) // no opacity
Design+Code ⟩ Shape, Stroke and Blend Mode
SwiftUI ⟩ View and Controls ⟩ View ⟩ Rendering
View ⟩
.mask(alignment:_:)
.clipShape(_:style:)
How can I clip a Shape with another Shape in SwiftUI?
Last updated 5 months ago
Was this helpful?