<!--
{
  "availability" : [
    "macOS: 12.0.0 -",
    "swift: 5.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/Invalidations/RestorableState",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "s:So6NSViewC6AppKitE13InvalidationsO15RestorableStateV"
  },
  "title" : "NSView.Invalidations.RestorableState"
}
-->

# NSView.Invalidations.RestorableState

A change that invalidates the restorable state of the view.

```
struct RestorableState
```

## Overview

Use [`restorableState`](/documentation/AppKit/NSViewInvalidating/restorableState) to create an instance of this type.

## Topics

### Creating the invalidation type

[`static var restorableState: NSView.Invalidations.RestorableState`](/documentation/AppKit/NSViewInvalidating/restorableState)

A change that invalidates the restorable state of the view.

[`init()`](/documentation/AppKit/NSView/Invalidations/RestorableState/init())

Creates the invalidation type.

### Invalidating the restorable state

[`func invalidate(view: NSView)`](/documentation/AppKit/NSViewInvalidating/invalidate(view:))

Indicates to the system that an aspect of a view is invalid and triggers the necessary update.

## Relationships

### Conforms To

[`NSViewInvalidating`](/documentation/AppKit/NSViewInvalidating)

---

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)