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 to disable loop for ParticleEmitterComponent on visionOS?

In Reality Composer Pro there is a flag to toggle the loop of the particle system. In code I couldn't find a .loop value on the ParticleEmitterComponent - does anyone know how else I can disable the looping there?
Mitemmetim
  • 520
  • 3
  • 12
0
votes
0 answers

Xcode 15.0 beta 6 VisionOS ImmersiveSpace error

When trying to create an ImmersiveSpace with new VisionOS SDK I get following error: Fatal error: SwiftUI Scene ImmersiveSpace requires a UISceneSessionRole of "UISceneSessionRoleImmersiveSpaceApplication" for key…
NSCaleb
  • 135
  • 4
0
votes
0 answers

Possible bug in Reality Composer Pro GeometryModifier?

I don't have experience in Computer Graphics, so I am not sure how the GeometryModifier of the Reality Composer Pro works. But to me there seems to be a bug (Version 1.0 (385.2)). To test, I created a scene with a flat box. Its center is placed at…
0
votes
0 answers

Drag-and-drop is worth to use with visionOS?

Our existing app uses drag-and-drop a lot, when running in visionOS Simulator of course it works, as I am using cursor and mouse on my computer. What will happen in real device? How drag and drop will work? What if some of the target drop view is…
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
0 answers

Restore window positions on visionOS

If I create several windows (using the openWindow @Environment wrapper), and the user moves them around on-screen, is there a way to automatically have the system restore them when the app is re-launched?
Ben Gottlieb
  • 85,404
  • 22
  • 176
  • 172
0
votes
0 answers

Load Particle System or Other Format From A VDB File?

Is it possible to load a particle system into a RealityView from a VDB file? VDB files are commonly used to store volumetric particle effect systems. The file format was originally created by DreamWorks. Due to Apple's partnership with Disney, it…
Zach
  • 1
  • 1
  • 9
0
votes
0 answers

Building for 'xrOS-simulator', but linking in object file (/visionOS2/Libraries/libiPhone-lib.a[5](MeshSkinningNEON64_blzfc.o)) built for 'xrOS'

i'm simply trying to create a test build with Unity to visionOS simulator. Using 2022.3.5f1 LTS. Having this problem in XCode 15.0 beta 4. Any ideas? Thanks! #visionOS Rebuild a new project, added xrOS in excluded Architectures
k3ndro
  • 91
  • 1
  • 4
0
votes
0 answers

Will TabView not be visible if RealityKitContent is not imported in SwiftUI app?

Have an existing SwiftUI app and wants to port to visionOS also. If I do not import RealityKitContent related parts from Apple's HelloWord app, then ui will appear, app will start in visionOS simulator, but tabbar does not visible, why? How to…
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
0 answers

How to make visionOS simulator available in Xcode beta?

Developing an app for visionOS. I did both, downloading inside Xcode visionOS, and did it externally from download.apple.com. I waited for both. Both was downloaded. 2 x 7GB. Yesterday I even could run a HelloWorld app. I restarted the computer and…
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
0 answers

Why two window appears in VisionOS app? I would expect one with two tabbar

I make this code: // // ContentView.swift // VisionOS // // Created by János Kukoda on 2023. 08. 01.. // import SwiftUI import RealityKit import RealityKitContent struct ContentView: View { @State private var showImmersiveSpace = false …
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
0 answers

SwiftUI TabView Not Consistently Placing Tab Bar on Left Side in VisionOS Simulator

I am working on a SwiftUI app with a TabView that includes a custom sidebar and content split view. The app is designed for VisionOS. According to the VisionOS documentation and my research, the TabView's default behavior on an iPad in landscape…
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
1 answer

How to create multiple windows in a SwiftUI app for VisionOS?

I'm working on a SwiftUI app for VisionOS, and I'd like to support multiple windows in my app to enhance the user experience. However, I couldn't find specific documentation or examples on how to achieve this for VisionOS. In SwiftUI for iOS and…
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
0 answers

How to Implement a Glassy Effect in a SwiftUI App for visionOS?

I am developing a SwiftUI application for visionOS and would like to implement a glassy effect for a specific view. visionOS provides unique features and capabilities that may differ from other platforms, such as iOS or macOS. I tried using .blur…
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
0 answers

Swift UI and Unity contents integration on Vision Pro

I plan to develop an App with Swift based UI (contents selector) and Unity based 3D contents. Would it be possible to integrate Swift and Unity? I think Unity as a service is not compatible with VisionOS. I guess one possible option would be Swift…
0
votes
1 answer

(SwiftUI Charts/ VisionOS) Static method 'buildExpression' requires that 'Chart' conform to 'View'

Trying to create a Chart in ContentView. I keep seeing this error no matter how I try to construct it. import Foundation import SwiftUI import Charts struct StockView: View { var body: some View { Chart { BarMark( …
rkatakam
  • 51
  • 6