Contents

init(id:makeContent:)

Creates the immersive space associated with the specified identifier.

Declaration

@export(implementation) nonisolated init(id: String, @ImmersiveSpaceContentBuilder makeContent: @escaping () -> Content) where Data == Never

Parameters

  • id:

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

  • makeContent:

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

Discussion

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