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? 😄 🎉

Can we show a classic SwiftUI window in an immersive space? 🤔

I’d like to show a window that hosts a few controls to customize the cannon.

What I'd really like is to show a classic SwiftUI window and ensure that it cannot be closed because I can't find a good way to let users restore the window once it's closed 🤔
@simonbs If you don’t want it to be closed then maybe it shouldn’t be a window but just a view. Like attaching a control panel with buttons to the cannon.
@nighthawk That’s what I’ve ended up doing but then I don’t get the default controls for moving and resizing a window. I hoped there was a way to get those for RealityView attachments, alas.
@simonbs I went down a similar route with the control panel in my immersive space. Experimented with a window but in actual use I preferred the simple fixed position and have that slightly out of the way, rather than having to manage the window which always spawned in your face and you had to move it out of the way. Would indeed be nice to customise where windows are located when they spawn.
@cdoncarroll Excellent! Will need to figure out how to do that then 😄
@simonbs I’m pretty sure that you can just use the open window action from the SwiftUI environment to open any window you’ve defined in your app.