I'm playing around with VisionOS
and wondered if it's possible to display an Image in ImmersiveSpace
. From the docs: https://developer.apple.com/documentation/SwiftUI/ImmersiveSpace
I see a way to create ImmersiveSpace
but it's not clear how can I encapsulate an Image inside of it (and let users see it as an immersive experience).
Any help will be highly appreciated!
To render an image in an immersive space, load an image as a texture, create a material with that texture, and attach a model component with that material to an entity inside RealityView. The code will look something like this: