Instance Method

compositingGroup()

Wraps the view in a compositing group.

Declaration

func compositingGroup() -> some View

Return Value

A view that wraps this view in a compositing group.

Discussion

A compositing group makes compositing effects in this view’s ancestor views, like opacity and the blend mode, take effect before this view renders.

See Also

Compositing Views

func blendMode(BlendMode) -> View

Sets the blend mode for compositing the view with overlapping views.

func drawingGroup(opaque: Bool, colorMode: ColorRenderingMode) -> View

Composites the view’s contents into an offscreen image before final display.