Well, turns out I also needed to replace my `LaunchView` from being initialized with SwiftUI's `WindowGroup` to an AppKit approach using `NSWindowController`. Now I have full control with AppKit and can easily choose when to open and close the window 😌 #dev
Frederik Handberg's avatar Frederik Handberg
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.
View quoted note →

Replies (1)

I noticed that after switching to `NSWindowController`, the shortcut `CMD+W` to close window no longer works… I guess that does not work by default as with `WindowGroup`.