I would like to place up to 100 SwiftUI views at specific locations in a 3D environment. Each view will contain a picture and some text. I am looking for a similar outcome to placing labels over physical locations. I have drawn labels in the past, but I would like to use SwiftUI instead.
Can I place many SwiftUI views inside ARView, ARSCNView, or RealityView?
The RealityView Attachments feature was created for use cases just like this. This allows you to place SwiftUI views in 3D space as RealityKit Entities. An example project for this can be found here.
Is there also a way to do this for the virtual camera? For iOS I'm unable to add attachments to the the RealityView. I know I can probably do a ZStack but if for some reason i wanted a swiftUI view on a 3d box i dont see how to do that natively