My contribution to society is an app that puts the user in a permanent rain of confetti 🎉 😄
Anyone want a confetti cannon for their Apple Vision Pro? 😄 🎉
@simonbs If you are using a RealityView here, you can create attachments which return a SwiftUI view - is that what you were after?
@andyq I am using a RealityView. I haven’t looked into attachments but maybe that’s the way to go about it. However, I was planning to have a window that’s moved independently of the 3D model. Not sure if that’s possible with attachments.
@simonbs somthing like:
RealityView { content, attachments in

} update: { content, attachments in
if let att = attachments.entity(for: "window”) {
att.position = [0, 0.1, 0]
content.entities[0].addChild(att, preservingWorldTransform: true)
}
} attachments: {
Attachment(id: "window”) {
VStack {

}
}
@andyq Tried this but it doesn't behave like a standard window on visionOS, which is what I'm going for.
@simonbs Ahhhhhhh!
@andyq Turns out standard windows don’t behave like I want them to when presenting along an immersive space. I think I’ll go for an attachment like you suggested. It seems there are no approach that gives me exactly what I want but an attachment seems to come closest.