Contents

modeDidChangeNotification

A notification that posts when a screen’s mode changes.

Declaration

nonisolated class let modeDidChangeNotification: NSNotification.Name

Mentioned in

Discussion

Clients can use this notification to detect changes in the screen resolution.

The object of the notification is the UIScreen object whose currentMode property changed. There is no userInfo dictionary.

The system posts this notification on the main actor.

See Also

Notifications