Post

Replies

Boosts

Views

Activity

Reply to VisionOS app UX/UI for showing hiding the main window
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
Aug ’23
Reply to Can't find WorldSensingUsageDescription
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
Aug ’23
Reply to controls broken after beta 6 install
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'.
Aug ’23