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 22 hours ago