Using Reality Composer Pro for visionOS
As we saw in the last recipe, we can create 3D objects and display them in AR quite simply in Swift. Another way in which we can create AR scenes is by using a GUI tool that automatically generates an AR scene that we can use directly in our app.
Enter Reality Composer Pro, an Apple tool that does exactly that for the visionOS platform. For more information, check out the link in the See also section.
Getting ready
For this recipe, we will be using Reality Composer Pro, which is available with Xcode 15. This recipe will focus more on creating an AR experience with the visionOS SDK, as there is currently a limitation on using Reality Composer Pro with the standard SDKs (such as iOS).
How to do it...
Let’s get started with this recipe:
- Create a new project in Xcode. Go to File | New | Project | VisionOS | App. For this app, be sure to choose Volume for Initial Scene and RealityKit for Immersive Space Renderer: