<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIObjectRestoration",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIObjectRestoration"
  },
  "title" : "UIObjectRestoration"
}
-->

# UIObjectRestoration

The interface that restoration classes use to restore preserved objects.

```
@MainActor protocol UIObjectRestoration
```

## Overview

A restorable object must set its [`objectRestorationClass`](/documentation/UIKit/UIStateRestoring/objectRestorationClass) property to the class that adopts this protocol. The method in this protocol should be used to return the object if it already exists or create it if needed.

## Topics

### Creating the restorable object

[`+  objectWithRestorationIdentifierPath:coder:`](/documentation/UIKit/UIObjectRestoration/object(withRestorationIdentifierPath:coder:))

Requests the object that corresponds to the specified identifier information.



---

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)