Generic Instance Method

mask(_:)

Masks this view using the alpha channel of the given view.

Declaration

func mask<Mask>(_ mask: Mask) -> some View where Mask : View

See Also

Masking and Clipping Views

func clipped(antialiased: Bool) -> View

Clips the view to its bounding rectangular frame.

func clipShape<S>(S, style: FillStyle) -> View

Sets a clipping shape for the view.

func cornerRadius(CGFloat, antialiased: Bool) -> View

Clips the view to its bounding frame, with the specified corner radius.