Thread

I tried using `UserDefaults` to save the IDs of open windows, so that when terminating the app and then re-launching, the app would open the same windows again. But apparently, this is not as easy as I thought - at least not when using #SwiftUI. I'm moving to an #AppKit approach instead to handle my window management... #dev

Replies (1)

The part with `UserDefaults` worked perfectly fine. The ID would get saved whenever opening a window, and then it would get removed when closing the window. But getting SwiftUI to conditionally open specific windows just did not work no matter what I did. For example, if no IDs were found, then it should open the `LaunchView` window, but mostly, it'd just open an empty window instead... 😩 Hopefully I can get AppKit to work more reliably.