🔸mask
SwiftUI ⟩ view ⟩ drawing ⟩ mask
view.inverseMask(): custom extension
// .mask() vs .clipShape()
view.mask(Circle().opacity(0.5)) // with opacity
view.clipShape(Circle()) // no opacityDesign+Code ⟩ Shape, Stroke and Blend Mode
Last updated
Was this helpful?