<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISceneDelegate/scene(_:didUpdate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UISceneDelegate(im)scene:didUpdateUserActivity:"
  },
  "title" : "scene(_:didUpdate:)"
}
-->

# scene(_:didUpdate:)

Tells the delegate that the specified activity object was updated.

```
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

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:)`](/documentation/UIKit/UISceneDelegate/stateRestorationActivity(for:)) method and after giving other parts of your app an opportunity to update the activity object returned by that method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)