How to Open My Own Immersive Space on Vision Pro with a .usdz Model?

Hi everyone,

I'm working on an app for Apple Vision Pro using VisionOS, and I need help creating an immersive space where users can explore a 3D model (in .usdz format). Specifically, I want to load the model and have the user enter an immersive environment with the model in the center of the space.

Here's what I've tried so far:

I have a .usdz file (POV_2.usdz) that I want to display in an immersive space. I'm using a RealityView to display the 3D content. I've attempted to use ImmersiveSpace, but I'm getting some errors like "Cannot find 'ImmersiveView' in scope" and "Value of type 'RealityView' has no member 'immersiveSpace'." I would really appreciate guidance on the correct approach for:

Setting up an immersive space in VisionOS. Loading and interacting with the .usdz model in that immersive space. Has anyone managed to create an immersive experience with a custom 3D model? If so, could you share any code snippets or advice on the proper setup?

Thank you in advance for any tips or insights!

How to Open My Own Immersive Space on Vision Pro with a .usdz Model?
 
 
Q