A notification indicating that the scene is now onscreen and responding to user events.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
Framework
- UIKit
Declaration
class let didActivateNotification: NSNotification.Name
Discussion
Use this notification to prepare your scene to be onscreen. UIKit posts this notification after loading the interface for your scene, but before that interface appears onscreen. Use it to refresh the contents of views, start timers, or increase frame rates for your UI. UIKit places the scene object in the object
property of the notification.
UIKit also calls the scene
method of your scene delegate object.
For more information on what to do when your app becomes active, see Preparing Your UI to Run in the Foreground.