Contents

willTerminateNotification

Sends a notification to terminate the app.

Declaration

class let willTerminateNotification: NSNotification.Name

Discussion

The system posts this notification on the main actor in response to the terminate(_:) method, and only posted if the delegate method applicationShouldTerminate(_:) returns true. The notification object is shared. This notification doesn’t contain a userInfo dictionary.

See Also

Notifications