applicationWillTerminate(_:)
Tells the delegate that the app is about to terminate.
Declaration
@MainActor optional func applicationWillTerminate(_ notification: Notification)Parameters
- notification:
A notification named Willterminatenotification. Calling the Object method of this notification returns the
NSApplicationobject itself.
Discussion
Your delegate can use this method to perform any final cleanup before the app terminates. The app will terminate after this method returns.