sceneDidBecomeActive(_:)
Tells the delegate that the scene became active and is now responding to user events.
Declaration
optional func sceneDidBecomeActive(_ scene: UIScene)Parameters
- scene:
The scene that became active and is now responding to user events.
Discussion
To use this method, you must implement the UISceneDelegate protocol and configure scenes for your app (see Specifying the scenes your app supports).
Use this method to prepare your scene to be onscreen. UIKit calls this method 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.
In addition to calling this method, UIKit posts a didActivateNotification and a didBecomeActiveNotification.
For more information on what to do when your app becomes active, see Preparing your UI to run in the foreground.