Been there. It seems like that the classification API is not expose to public yet ...
Post
Replies
Boosts
Views
Activity
The X button is for closing your App. You can control the hidden logic for your view
Example
Check "The Solar System" scene in the sample project Hello World.
A NavigationStack View will show in default:
Click the "View Outer Space" button to trigger the full immersive mode and then the NavigationStack View is hidden:
The NavigationStack View will return after you click the "Exit the Solar System" button.
How to do?
This can be implemented by the .opacity modifier in SwiftUI. The "Hello World" sample uses the model.isShowingSolar to control the view's hidden state.
// The main navigation element for the app.
NavigationStack(path: $model.navigationPath) {
TableOfContents()
.navigationDestination(for: Module.self) { module in
ModuleDetail(module: module)
.navigationTitle(module.eyebrow)
}
}
.opacity(model.isShowingSolar ? 0 : 1)
Try it
You can click the X button on the window's bottom to close it.
Check your Simulator's version, check this answer for more detail.
https://developer.apple.com/forums/thread/735538?answerId=761693022#761693022
Just directly add "NSWorldSensingUsageDescription" as a string key type to your 'info.plist'
But the "WorldSensing" feature of ARKit in visionOS is not working when you use the Simulator.
print("SceneReconstructionProvider: \(SceneReconstructionProvider.isSupported)") // false
print("WorldTrackingProvider: \(WorldTrackingProvider.isSupported)") // true
print("PlaneDetectionProvider: \(PlaneDetectionProvider.isSupported)") // false
print("HandTrackingProvider: \(HandTrackingProvider.isSupported)") // false
print("ImageTrackingProvider: \(ImageTrackingProvider.isSupported)") // false
Please provide more detail. e.g. The version of the simulator, Xcode, etc.
Otherwise, I can't reproduce your issue and solve it.
Making the 'Minimum Deployments' to iOS 13.0 will solve this issue.
My Issue
I have the same issue after I downgrade the Xcode 15 from beta 6 to beta 5.
The control panel is gone and all the features of 'Device' in the menu bar are disabled in the Simulator.app (Version 1014):
But looks normal in Simulator.app (Version 1015):
Workaround
Make sure you run the Simulator.app (Version 1015) before you build your project. You can locate it through 'SpotLight'.