visionOS app gets stuck when pressing the x button

Hey there,

I'm new to SwiftUI and have been working on a visionOS app.

To learn about the API and language, I downloaded the Hello World project: https://developer.apple.com/documentation/visionos/world/

I noticed the following issues:

  • Using Xcode v15.2, I built and ran the World app at the Simulator.
  • In the app, I am greeted with the main "Hello World" screen.
  • I selected to view the Earth card, and in it, I clicked to "View Globe"
  • As the 3D Earth view is displayed, I pressed the 'x' button of the main app.
  • Problem: The main app panel closes, but the 3D Earth view is still displayed. There is no way to return back to the main app screen and properly exit the app.
  • Problem: I can close the 3D Earth view (via its dedicated 'x' button), and this sometimes returns me back to the main Simulator screen (but other times it gets stuck to an empty Simulator screen). When I re-open the World app, I can only see the 3D Earth view; the World app is stuck there and there's no way of returning back to the main screen. The only workaround I've found is to rebuild the app.

Any information would be much appreciated.

Thanks

visionOS app gets stuck when pressing the x button
 
 
Q