Questions tagged [visionos]

visionOS is the spatial operating system from Apple, found on spatial computing devices like Apple Vision Pro. Use this tag only if your question relates to using visionOS APIs or visionOS-specific behavior, not because you happen to run your code on visionOS. Questions relating to using or troubleshooting visionOS are off-topic and belong in the Ask Different community instead.

60 questions
0
votes
1 answer

How do I get the window size in visionOS?

Is there something similar to UIScreen.main.bounds on visionOS? I have some code that depends on the screen size and using a hard coded value for it doesn’t really work out unfortunately.
Mitemmetim
  • 520
  • 3
  • 12
0
votes
1 answer

Build Swift for iOS and visionOS on both Xcode 14 and 15 without warnings

We'd like to find a way to write iOS-only Swift code blocks in code that supports multiple Apple platforms and runs without warnings on both Xcode 14 and 15. It's complicated by the fact that #if os(iOS) evaluates to true for visionOS so the test…
Paul Beusterien
  • 27,542
  • 6
  • 83
  • 139
0
votes
1 answer

When using RealityView, why does it work in preview, but not in the Vision Pro simulator?

This is my app code, trivial: import SwiftUI @main struct LogicVisionApp: App { var body: some Scene { WindowGroup { ContentView() }.windowStyle(.volumetric) } } This is my ContentView code: import…
Ignis Incendio
  • 190
  • 1
  • 10
0
votes
2 answers

Expansion of macro 'ObservationTracked' produced an unexpected 'init' accessor

After updating Xcode to 15 beta 3, errors started appearing on the var properties of my @Observable models when building my project for Apple Vision Pro. Expansion of macro 'ObservationTracked' produced an unexpected 'init' accessor There's also…
Clément Cardonnel
  • 4,232
  • 3
  • 29
  • 36
0
votes
1 answer

visionOS - Can you use a RealityView outside of an ImmersiveSpace?

I have a visionOS app that supports both a WindowGroup and an ImmersiveSpace. import SwiftUI @main struct VisionApp: App { @State var immersionStyle: ImmersionStyle = .mixed var body: some Scene { WindowGroup { …
swiftyboi
  • 2,965
  • 4
  • 25
  • 52
0
votes
1 answer

Preload/cache ResolvedModel3D on visionOS?

Is there a way to pre-load ResolvedModel3D objects, so that they can be shown without a delay (instead of via Model3D)? Right now there's a delay while models are loaded; I'd like to front-load that time so that the eventual appearance is quicker.
Ben Gottlieb
  • 85,404
  • 22
  • 176
  • 172
0
votes
0 answers

Don't open spring board on visionOS at app launch?

Every time I run my app in the Vision Pro simulator, the spring board (or whatever the app launcher on visionOS is called) opens. Is there a way to disable this behavior?
Ben Gottlieb
  • 85,404
  • 22
  • 176
  • 172
0
votes
1 answer

Video playback (HTML5 VideoElement) Apple Vision Pro Simulator in VR mode not playing

I'm working on a webVR video player. The HTML video element is loaded and playing in regular 3D view using ThreeJS and a VideoTexture mapped to a plane. It works on Chrome and Safari. Now I've added webVR mode by adding the button and starting the…
Thor_Bux
  • 1,137
  • 12
  • 26
0
votes
1 answer

How to perform nested navigation in visionOS

I'm displaying a simple NavigationStack with some options, which navigate to a component with a NavigationView that looks something like this: NavigationView { List(courseMetadata.lessons, selection: $selection) { lesson in …
0
votes
1 answer

SwiftUI Search Bar Animation

I have a search bar in SwiftUi and it doesn't react the way I am wanting it to. I have gone through a few attempts at using .overlay and .zIndex but that did not work as intended. It added the SearchView, but it still displayed the other text.…
Cody
  • 1
0
votes
0 answers

VisonOS what are the minimum Hardware Requirements for Simulator

I‘d like to get a view on what the minimum hardware requirements to run the visionOS simulator at a realistic frame-rate. Seems to be little information around anywhere that get‘s into that detail. I‘ve looked around on the developer portal.
ReaddyEddy
  • 323
  • 4
  • 7
0
votes
1 answer

Is it possible to access the front lcd screen for the vision pro?

Looking through the VisionOS SDK and I am wondering if we can access the front LCD of the VisionPro. Has anyone seen anything concerning this. I haven't discovered anything yet.
Ro4ch
  • 850
  • 8
  • 21
0
votes
1 answer

how to launch apps in the visionos sim

I have built my hello world app and it runs in the simulator. I can also get the Home Screen with my icon and the icon of the other included apps in the sim. However, I cannot launch any apps in the sim, neither my app nor the included ones. The…
john elemans
  • 2,578
  • 2
  • 15
  • 26
0
votes
2 answers

VisionOS - How to navigate between SwiftUI Views?

I'm trying to build a simple VisionOS app with a single window and i wanna navigate between SwiftUI Views by tapping a custom View embedded inside a NavigationLink as I always did with all SwiftUI apps. The issue is that nothing happens when I tap…
I Don't Tell
  • 264
  • 1
  • 15
-2
votes
1 answer

How to add a menu to the left side of a SwiftUI app for VisionOS?

I'm working on a SwiftUI app for VisionOS and I want to add a menu to the left side of the app's interface. The menu should contain some items that the user can interact with. I tried using SwiftUI's NavigationView to achieve this, but it doesn't…
János
  • 32,867
  • 38
  • 193
  • 353
1 2 3
4