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
4
votes
2 answers

What is the difference between Model3D and RealityView in visionOS?

I think RealityView should be able to do more fancy stuffs, but I still want to figure out the exact differences between them. For now, they are just too similar to each other, e.g. they both need an Entity name to get initialized. I want to know…
P. Tsin
  • 435
  • 4
  • 14
3
votes
2 answers

How can a Model be anchored above the user's Head in visionOS?

Let's say for example, I want to anchor a cloud above the user's head. I know that AnchorEntity exists and that you can get a reference to the user's head with AnchorEntity(.head). But how do I actually use it? With this code I am not seeing…
swiftyboi
  • 2,965
  • 4
  • 25
  • 52
3
votes
1 answer

How to set size of WindowGroup in visionOS?

I want to set the dimensions of a WindowGroup to a specific size when running on visionOS. On iOS and maOS we have the .defaultSize modifier for that. When building for visionOS, Xcode offers a slightly different modifier (with an additional…
ixany
  • 5,433
  • 9
  • 41
  • 65
2
votes
1 answer

Reality Composer Pro GeometryModifier: How to debug?

I am learning Reality Composer Pro, and am trying to implement a test GeometryModifier. I have a 3D model that I can display in the Vision Pro simulator. To modify its geometry, I have set up a Shader Graph that should do the following. From the…
2
votes
1 answer

MTKView is unavailable on visionOS

Working with Apple Vision Pro SDK. When trying to reference MTKView in MetalKit I get MTKView is unavailable in xrOS. I am trying to run the 'Pipeline to Render Primitives' code sample to discover MetalKit in VisionOS simulator. The MetalKit is…
ZaEeM ZaFaR
  • 1,508
  • 17
  • 22
2
votes
1 answer

How to run react-native on visionOS

Apple just released visionOS SDK for creating Vision Pro apps. How can I run a react-native project on Apple Vision Pro?
2
votes
1 answer

Creating a new project on apple vision pro

Creating a new project on apple vision pro and in xcode there are following option. can someone please explain initial scene windows and Volume. Immersive space None , Mixed , Progressive , Full
Matloob Hasnain
  • 1,025
  • 6
  • 21
2
votes
1 answer

How to remove embedded content built for iOS platform from xrOS target?

I tried to build my iOS target for visionOS and get the following error: Your target is built for xrOS but contains embedded content built for the iOS platform (Ploppy Pairs Clip.appex), which is not allowed. and the same for Ploppy Pairs.clip. I…
Mitemmetim
  • 520
  • 3
  • 12
2
votes
1 answer

Particle system in RealityKit

Is there a particle system in RealityKit? if so, can someone point me to the correct documentation/articles? So far I did not find any particle systems in the RealityKit module.
1
vote
1 answer

How can I create a Vision Pro project with CocoaPods?

When I create a Vision Pro project using CocoaPods, the build fails with "Framework 'Pods_XXXX(Project NAME)' not found" platform :ios, '15.0' target 'XXXXX(MyProjectName)' do # Comment the next line if you don't want to use dynamic frameworks …
tbfungeek
  • 11
  • 1
1
vote
1 answer

Rotate multiple entities independently in RealityView

With a RealityView, an entity can be rotated using a gesture detector to the entire view: RealityView { content in let loadedEntity = try await ModelEntity(named: modelName, in: RealityKitContent.realityKitContentBundle) …
Zach
  • 1
  • 1
  • 9
1
vote
2 answers

How to rotate a ModelEntity in visionOS?

When loading a model as a Model3D object, you can add a gesture modifier like so: Model3D(named: model_name, bundle: realityKitContentBundle){ model in model .resizable() .aspectRatio(contentMode: .fit) }…
Zach
  • 1
  • 1
  • 9
1
vote
3 answers

How to check if device is Vision Pro - Xcode 15 Beta 4

I have a video analysis app and i'm trying to make it compatible with visionOS. It crashes because camera is not allowed; Apple only allows to import videos from Photos. So I would need to check on launch if the device runs visionOS to show the…
CarlosBF
  • 384
  • 1
  • 17
1
vote
1 answer

'SpotLightComponent' is unavailable in visionOS

I am working with RealityKit in Vision OS beta 1 and can't build the light source. I want to use that light source in the fully immersive space (that has no light source by default). I tried that code to create the entity with the…
1
vote
2 answers

Single instance windows on visionOS

It appears that Window is not available on visionOS, only WindowGroup. If I want to have a window with only one instance (say, a Menu or similar), how can I ensure that each time I call openWindow, the same window appears, and a new one is not…
Ben Gottlieb
  • 85,404
  • 22
  • 176
  • 172
1
2 3 4