Type Property

willEnterForegroundNotification

A notification indicating that a scene is about to begin running in the foreground and become visible to the user.

Declaration

class let willEnterForegroundNotification: NSNotification.Name

Discussion

UIKit posts this notification before moving a scene to the foreground. This transition occurs both for newly created and connected scenes and for scenes that were running in the background and were brought to the foreground by the system or a user action. A scene enters the foreground as a precursor to becoming visible onscreen, so this method is invariably followed by the posting of a didActivateNotification notification. UIKit places the scene object in the object property of the notification.

UIKit also calls the sceneWillEnterForeground(_:) method of your scene delegate object.

See Also

Responding to Life Cycle Notifications

class let willConnectNotification: NSNotification.Name

A notification indicating that UIKit added a scene to your app.

Beta
class let didDisconnectNotification: NSNotification.Name

A notification indicating that UIKit removed a scene from your app.

Beta
class let didActivateNotification: NSNotification.Name

A notification indicating that the scene is now onscreen and responding to user events.

Beta
class let willDeactivateNotification: NSNotification.Name

A notification indicating that the scene is about to resign the active state and stop responding to user events.

Beta
class let didEnterBackgroundNotification: NSNotification.Name

A notification indicating that the scene is running in the background and is no longer onscreen.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software