init(id:makeContent:)
Creates the immersive space associated with the specified identifier.
Declaration
init(id: String, @ImmersiveSpaceContentBuilder makeContent: @escaping () -> Content) where Data == NeverParameters
- id:
A string that uniquely identifies the immersive space. Ensure that identifiers are unique among the immersive spaces in your app.
Discussion
The space uses the specified content builder to form the content.