Has anybody had luck getting a Catalyst app to restore window frame (size & position) after closing all windows of the app and then tapping the dock icon to launch the app again?
If I quit the app and re-launch, it remembers the frame fine using my current mechanism, but if I close all windows and re-launch from dock, it places the app at the default position rather than the previously remembered position.
I got this to work correctly for a
#SwiftUI app under macOS after a bit of tinkering but that was using `NSApplicationDelegate` methods. Haven’t had much luck with `UIApplicationDelegate` methods for the Catalyst app so far because my previous method involved using `applicationShouldHandleReopen` which is not there in `UIApplicationDelegate` ….
So wondering if anybody has run into this before and fixed it before I do a deeper dive …
#macOS #Swift #Coding #Catalyst #SwiftUI