With the new ImagePresentationComponent in visionOS 26, how can text/overlays be shown on top of the image as seen in the Spatial Gallery app?
You can overlay UI on the entity with the ImagePresentationComponent by using the ViewAttachmentComponent. There is a new initializer that helps you add SwiftUI View as a component to an entity without using the RealityViewAttachments.
The presentationScreenSize API gives you the size of the image and you can use it to place the UI relative to the image.
You will need to use the ModelSortGroupComponent to render the UI above the image.
To achieve the feathered glass background effect you can use the feathered property of the GlassBackgroundEffect protocol. Let me know if you have any further questions. Happy to help !