---
title: completeStateRestoration()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiapplication/completestaterestoration()
---

# completeStateRestoration()

Tells the app that your code has finished any asynchronous state restoration.

## Declaration

```swift
func completeStateRestoration()
```

## Discussion

Discussion UIKit restores your app’s state synchronously on the main thread. If you choose to perform additional state restoration on a secondary thread, call the extendStateRestoration() method to inform UIKit of that fact. Call this method after you finish with your background work to let the system know that state restoration is complete.

## See Also

### Managing state restoration

- [extendStateRestoration()](uikit/uiapplication/extendstaterestoration().md)
- [ignoreSnapshotOnNextApplicationLaunch()](uikit/uiapplication/ignoresnapshotonnextapplicationlaunch().md)
- [registerObject(forStateRestoration:restorationIdentifier:)](uikit/uiapplication/registerobject(forstaterestoration:restorationidentifier:).md)
