I now have a working solution that remembers exactly which windows were open before terminating the app.
This makes sure that when launching the app, the same windows will be opened again.
**Only seem to be one issue left to fix:** The `LaunchView` window should not appear on startup if we already have at least one open window with a Space.
Login to reply
Replies (1)
It certainly took longer than I expected to get my window management working, and it’s not even fully working yet, as I still need to stop the `LaunchView` from always appearing on startup. I didn’t get around to working on that today, because I’ve been focused on learning how to use the `NSViewController` (AppKit) instead of `WindowGroup` (SwiftUI) as I used before.