---
title: "application(_:didDecodeRestorableStateWith:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiapplicationdelegate/application(_:diddecoderestorablestatewith:)"
---

# application(_:didDecodeRestorableStateWith:)

Tells your delegate to restore any high-level state information as part of the state restoration process.

## Declaration

```swift
optional func application(_ application: UIApplication, didDecodeRestorableStateWith coder: NSCoder)
```

## Parameters

- `application`: Your singleton app object.
- `coder`: The keyed archiver containing the app’s previously saved state information.

## Discussion

Discussion The state restoration system calls this method as the final step in the state restoration process. By the time this method is called, all other restorable objects will have been restored and put back into their previous state. You can use this method to read any high-level app data you saved in the application(_:willEncodeRestorableStateWith:) method and apply it to your app.

## See Also

### Managing app state restoration

- [application(_:shouldSaveSecureApplicationState:)](uikit/uiapplicationdelegate/application(_:shouldsavesecureapplicationstate:).md)
- [application(_:shouldRestoreSecureApplicationState:)](uikit/uiapplicationdelegate/application(_:shouldrestoresecureapplicationstate:).md)
- [application(_:viewControllerWithRestorationIdentifierPath:coder:)](uikit/uiapplicationdelegate/application(_:viewcontrollerwithrestorationidentifierpath:coder:).md)
- [application(_:willEncodeRestorableStateWith:)](uikit/uiapplicationdelegate/application(_:willencoderestorablestatewith:).md)
- [stateRestorationBundleVersionKey](uikit/uiapplication/staterestorationbundleversionkey.md)
- [stateRestorationSystemVersionKey](uikit/uiapplication/staterestorationsystemversionkey.md)
- [stateRestorationTimestampKey](uikit/uiapplication/staterestorationtimestampkey.md)
- [stateRestorationUserInterfaceIdiomKey](uikit/uiapplication/staterestorationuserinterfaceidiomkey.md)
- [stateRestorationViewControllerStoryboardKey](uikit/uiapplication/staterestorationviewcontrollerstoryboardkey.md)
