Wraps the view in a compositing group.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
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.