init(configuration:renderer:)
Creates a Compositorlayer instance.
Declaration
nonisolated init(configuration: any CompositorLayerConfiguration = .default, renderer: @escaping @MainActor (LayerRenderer) -> Void)Parameters
- configuration:
The configuration to use when creating the LayerRenderer.
- renderer:
A closure that receives the layer to use when rendering the content for the immersive space