With SwiftUI on macOS, is it still not possible to show a prompt when a window i...
Mike Piontek @robotspacer@xoxo.zone
With SwiftUI on macOS, is it still not possible to show a prompt when a window is closed? I thought I heard a mention of this at WWDC, but I can’t find any info. Maybe I heard about UIKit’s UISceneClosureConfirmation and assumed this meant SwiftUI support?
DocumentGroup does this, but that’s not always appropriate. Mail is a good example of where you’d need this feature without document handling. (I was going to say Shortcuts as well, but I guess that autosaves everything.) #MacDev #SwiftUI