Contents

init(id:content:)

Creates the remote immersive space associated with the specified identifier.

Declaration

nonisolated init<C>(id: String, @CompositorContentBuilder content: @escaping () -> C) where Content == CompositorContentBuilder.Content<C>, Data == Never, C : CompositorContent

Parameters

  • id:

    A string that uniquely identifies the immersive space. Ensure that identifiers are unique among the immersive spaces in your app.

  • content:

    An compositor content builder that defines the content of the space.

Discussion

The space uses the specified content builder to form the content.