<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplication/stateRestorationViewControllerStoryboardKey",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIStateRestorationViewControllerStoryboardKey"
  },
  "title" : "stateRestorationViewControllerStoryboardKey"
}
-->

# stateRestorationViewControllerStoryboardKey

A reference to the storyboard that contains the view controller.

```
class let stateRestorationViewControllerStoryboardKey: String
```

## Discussion

The value of this key is a [`UIStoryboard`](/documentation/UIKit/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`](/documentation/UIKit/UIViewController) class automatically writes this key to the coder during the state preservation process.

---

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)