---
title: stateRestorationViewControllerStoryboardKey
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uiapplication/staterestorationviewcontrollerstoryboardkey
---

# stateRestorationViewControllerStoryboardKey

A reference to the storyboard that contains the view controller.

## Declaration

```swift
class let stateRestorationViewControllerStoryboardKey: String
```

## Discussion

Discussion The value of this key is a UIStoryboard object representing the storyboard from which a view controller was initially obtained. You don’t need to write this key to the coder yourself. Each UIViewController class automatically writes this key to the coder during the state preservation process.

## 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)
- [application(_:didDecodeRestorableStateWith:)](uikit/uiapplicationdelegate/application(_:diddecoderestorablestatewith:).md)
- [stateRestorationBundleVersionKey](uikit/uiapplication/staterestorationbundleversionkey.md)
- [stateRestorationSystemVersionKey](uikit/uiapplication/staterestorationsystemversionkey.md)
- [stateRestorationTimestampKey](uikit/uiapplication/staterestorationtimestampkey.md)
- [stateRestorationUserInterfaceIdiomKey](uikit/uiapplication/staterestorationuserinterfaceidiomkey.md)
