I can't seem to find a decent SwiftUI pattern where you have a welcome screen where the user can choose from creating a new document, or open a recent document.
Currently my MacOS implementation is a WindowGroup in conjunction with a DocumentGroup. It kind of works, I see the Welcome view and when I click my button, I can trigger a new document via NSDocumentController.shared.newDocument(nil)
However, if I quit my app, and come back into it, the file picker is displayed behind my WindowGroup content.
I can't help but to think a pattern for this exists but I'm just entering in the right keywords. Do you have any thoughts on this?
Right now my best resource is this "workaround from StackOverflow https://stackoverflow.com/a/72888841 but I wanted to see if there was something better...