IceCubesApp
IceCubesApp copied to clipboard
Feature request: Mac client should remember window position after closing
This is killing me. I can't figure out how to fix it in SwiftUI. Stack Overflow has failed me 🙂
The simplest fix would be to make the app Catalyst. You'd get this behaviour for free then.
It would then need some (relatively straightforward) code to stop it quitting on close.
It does open up the chance to do some more stuff to make that version Mac-ish but at the risk of doing a load of redundant platform specific code if the next version of SwiftUI is radically better on the Mac.
I just wondered what you thought about this from a philosophical point of view.
+1 Last window position and last window size
+1 on window size. I think the Mac app looks best at its minimum width of around 520 points (with the right-hand side sidebar hidden). But every time I restart it, it's back to a width of about 1025 points.
From a quick look, I guess this is where it sets the size: https://github.com/Dimillian/IceCubesApp/blob/70eea46aefe189e6213428696b57d19355e6a886/IceCubesApp/App/Main/IceCubesApp%2BScene.swift#L53
IDK if is it related or not, but whenever my Mac goes to sleep and then wakes up - the Ice Cubes App position and window size are different than they were before sleeping... The App is opened on a secondary monitor. I'll test it on the primary one to see if that happens too.
Rgd my ^^^ comment: My experiments show that the app window position is preserved during sleep if the app is opened on the main monitor. But on the secondary one - every morning I see the window size and position is changed.
Just wanted to +1 this. Remembering the last position and size of windows would be a massive boost to the macOS user experience, which is already pretty damn solid. But not having to move the new post window every time alone would help save my sanity.
Hope a solution is found.