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.
Questions tagged [visionos]
60 questions
1
vote
1 answer
How to gain full control over Apple Vision pro's display and render 2D graph plot on it
How can I achieve full control over Vision Pro's display and effectively render a 2D graph plot on it? I would appreciate guidance on the necessary steps or code snippets.
P.s. As per Apple documentation
For a more immersive experience, an app can…

ZaEeM ZaFaR
- 1,508
- 17
- 22
1
vote
0 answers
Custom Engine With Compositor Services (Apple VisionOS)
I want to draw my own content in fully immersive space in VisionOS. According to apple documentation here it's possible through Metal, but I don't have much knowledge about Metal. Can any one please provide me how to create metal engine for drawing…

Muhammad Khaliq ur Rehman
- 67
- 1
- 9
1
vote
1 answer
'ARView' is unavailable in xrOS
Working with Apple Vision Pro SDK. When trying to reference ARView in ARKit I get ARView is unavailable in xrOS. But the docs for ARView say it's available in visionOS 1.0+ Beta.

NSCaleb
- 135
- 4
1
vote
2 answers
visionOS | How can I detect when two entities collide in RealityKit?
So I have the default scene for an ImmersiveView that has two plain spheres. I am moving one of them with my game controller.
import SwiftUI
import RealityKit
import RealityKitContent
import GameController
struct ImmersiveView: View {
…

swiftyboi
- 2,965
- 4
- 25
- 52
1
vote
0 answers
visionOS weird behaviour on NavigationStack title
I have a very simple navigation architecture so far, I left inner views (CourseDetail and CourseRows) as clean as possible to make sure there's nothing inside provoking the issue. Here's how it looks like.-
NavigationStack {
…

ssantos
- 16,001
- 7
- 50
- 70
1
vote
1 answer
ZStack z-index offset on visionOS with Model3D views
If I take a ZStack and add a bunch of Model3D views to it (to arrange them in 2D space), the ZStack will give each successive view an adjustment to the z-axis, such that they appear to be placed on different planes. Is there a way to disable this?

Ben Gottlieb
- 85,404
- 22
- 176
- 172
1
vote
1 answer
In RealityKit, how can I get programmatic access to a component created in Reality Composer Pro?
Let's say I have made a scene with a particle emitter in Reality Composer Pro. I am trying to tweak some values of the emitter in code, but I am not sure how to get access to the particle emitter in my code.
import Foundation
import SwiftUI
import…

swiftyboi
- 2,965
- 4
- 25
- 52
1
vote
2 answers
How can I wrap Objective-C code for visionOS only?
I have the following code in Objective-C:
if (@available(iOS 13.0, tvOS 13.0, *)) {
indicator.indicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleLarge;
} else {
indicator.indicatorView.activityIndicatorViewStyle =…

Charlie Fish
- 18,491
- 19
- 86
- 179
1
vote
3 answers
Launching an iOS app on Vision Pro Simulator Error: Simulator device returned an error for the requested operation
I have a iOS app which I'm trying to test on a Apple Vision Pro Simulator from XCode 15 Beta 2.
The app builds successfully, but I'm getting the following error when the app should launch on the simulator:
Simulator device returned an error for the…

user3673952
- 698
- 10
- 30
1
vote
2 answers
Is there a bug in visionOS TabBar Preview?
Playing around with visionOS I'm rewriting SwiftUI tutorials to launch on Xcode visionOS simulator, everything's working fine so far, but adding any TabView makes preview crash (even when it's working on running). Here's my code.
TabView(selection:…

ssantos
- 16,001
- 7
- 50
- 70
0
votes
0 answers
Why do I have a ? next to my packages asset for VisionOS?
enter image description here
Does anyone know how I can fix the ? here? I'm trying to add the sunglasses to my content view.
Very little resources out there, do I need to user Reality Composer Pro to add the 3D file or can I use the asset folder?
0
votes
0 answers
Dragging gesture issue in visionOS
Using visionOS and RealityKit:
I am attempting to place images in wall anchors and be able to move their position using drag gestures. This seem pretty straightforward to do if the wall anchor is facing you when you start the app. But, if you place…

Fernando
- 9
- 2
0
votes
1 answer
List interaction issue on SwiftUI
I'm trying to create a simple todo-list app using Swift for VisionOS. So far, when the user creates their first Todo-List, the user can name it, select it and add todos into the list. However, when the user tries to create more Todo-Lists, it is not…

Marcell
- 1
- 3
0
votes
0 answers
VisionOS - visually detached view
In VisionOS app, I would like co create a view, that is visually detached from the main window, but stays on specified location relatively to the window. In short, I would like something like this (screenshot from wwdc video):
I can create another…

Kaven
- 147
- 1
- 11
0
votes
0 answers
VisionOS window 3d position and rotation
I am playing with vision OS on simulator, and trying to make a virtual keyboard similar to the standard one (but with different buttons). I can make another WindowGroup in my app and fill it with buttons, and open it when app needs input.
However, I…

Kaven
- 147
- 1
- 11