Contents

scene(_:didUpdate:)

Tells the delegate that the specified activity object was updated.

Declaration

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:) 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