Detecting unsaved changes in a Mac Catalyst window and preventing closure or app termination

CatalystUnsavedChanges

Simple Catalyst example showing how to prevent window or app closure while the current window has unsaved changes. Uses undocumented API and swizzling in lieu of better support from the SDK.

Screenshots

GitHub

View Github