Instruction

Heads up... You're reading this book for free, with parts of this chapter shown beyond this point as scrambled text.

Setting the Scene

With an Immersive experience app, you’re responsible for everything that appears on the screen. You can use an Immersive Space for a VR game, to create a focused experience for your user, to provide a new environment to work in, or to take the user to a new place to experience.

Button("Open ImmersiveSpace") {
  Task {
    let result = await openImmersiveScene(id: "ImmersiveSpace")
    if case .error = result {
      print("An error occurred")
    }
  }
}

See forum comments
Download course materials from Github
Previous: Introduction Next: Demo Part 1