<!--
{
  "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/stateRestorationUserInterfaceIdiomKey",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIApplicationStateRestorationUserInterfaceIdiomKey"
  },
  "title" : "stateRestorationUserInterfaceIdiomKey"
}
-->

# stateRestorationUserInterfaceIdiomKey

The user interface idiom that was in effect when your app created the restoration archive.

```
class let stateRestorationUserInterfaceIdiomKey: String
```

## Discussion

The value of this key is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing one of the values for the [`UIUserInterfaceIdiom`](/documentation/UIKit/UIUserInterfaceIdiom) enum. This value reflects whether the interface that was saved was targeting the iPad or iPhone idiom.

---

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)