---
title: "scene(_:didUpdate:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiscenedelegate/scene(_:didupdate:)"
---

# scene(_:didUpdate:)

Tells the delegate that the specified activity object was updated.

## Declaration

```swift
optional func scene(_ scene: UIScene, didUpdate userActivity: NSUserActivity)
```

## Parameters

- `scene`: The scene handling the activity.
- `userActivity`: The user activity object containing the updated data.

## Discussion

Discussion Use this method to add any final data to the specified user activity object. UIKit calls this method on your app’s main thread after calling your stateRestorationActivity(for:) method and after giving other parts of your app an opportunity to update the activity object returned by that method.

## See Also

### Saving the state of the scene

- [Restoring your app’s state](uikit/restoring-your-app-s-state.md)
- [stateRestorationActivity(for:)](uikit/uiscenedelegate/staterestorationactivity(for:).md)
- [scene(_:restoreInteractionStateWith:)](uikit/uiscenedelegate/scene(_:restoreinteractionstatewith:).md)
