---
title: "sceneDidBecomeActive(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiscenedelegate/scenedidbecomeactive(_:)"
---

# sceneDidBecomeActive(_:)

Tells the delegate that the scene became active and is now responding to user events.

## Declaration

```swift
optional func sceneDidBecomeActive(_ scene: UIScene)
```

## Parameters

- `scene`: The scene that became active and is now responding to user events.

## Mentioned in

About the app launch sequence Transitioning to the UIKit scene-based life cycle

## Discussion

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. note: When you implement this method and enable scenes, UIKit calls this method but does not call the applicationDidBecomeActive(_:) method on UIApplicationDelegate.

## See Also

### Transitioning to the foreground

- [sceneWillEnterForeground(_:)](uikit/uiscenedelegate/scenewillenterforeground(_:).md)
