How to create a VisionPro project with a Window
In XCode, create a new VisionOS project and set the initial scene to "Window."
Apple provides an out of the box VisionOS project that provides a scene with a window.
In the event that you are trying to transform an existing project into one that starts with a window, the key elements are found in the info.plist and the way you code the initial scene.
Samples are found in the repository linked below on the 101/window-starter branch.
Sample info.plist demonstrating that the "Preferred Default Scene Session Role" should be set to "Window Application Session Role."
Sample App and ContentView. Code provided by Apple.
Looking to learn more about VisionOS, Spatial Computing, Design and Technology?
Search our blog to learn more about visionOS, spatial computing, design and technology.