// .mask() vs .clipShape() .mask(Circle().opacity(0.5)) // with opacity .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 2 years ago