Hey!
I am developing an unbounded volume camera App, and added SwiftUI components to the app for various UI related stuff.
I am using it exactly as described in the documentation and it actually works fine.
Now, when I do not open the SwiftUI window and close the app, when I reopen the App everything works as expected.
However, when I spawn a SwiftUI window, close the App and reopen it, only the SwiftUI window opens and I cannot open my App anymore. The only thing that helps is reinstalling the whole app.
Am I missing something?
Thanks in advance!
Filip
Thank you for posting a good question.
I’m also developing an MR mode app with Unity, and I’m wondering if I can use SwiftUI in an MR mode app.
Based on your question, it seems possible, but have you actually used SwiftUI in the MR mode app made with Unity? I would really appreciate it if you could tell me which SwiftUI components and documentation are mentioned in your question!
Hey, sure. I went and used the official Unity visionOS template which you can find here:
https://docs.unity3d.com/Packages/com.unity.polyspatial.visionos@0.1/manual/TutorialCreateFromTemplate.html
Take the latest visionOS Template from here.
There, look into the SwiftUI Scene and you should be able to figure the rest out 