<!--
{
  "availability" : [
    "macOS: 12.0.0 -",
    "swift: 5.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSViewInvalidating",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "s:6AppKit18NSViewInvalidatingP"
  },
  "title" : "NSViewInvalidating"
}
-->

# NSViewInvalidating

Implements a type of invalidation that can occur on a view that requires an update.

```
protocol NSViewInvalidating
```

## Topics

### Types of Invalidations

[`static var constraints: NSView.Invalidations.Constraints`](/documentation/AppKit/NSViewInvalidating/constraints)

A change that invalidates a view’s constraints.

[`static var display: NSView.Invalidations.Display`](/documentation/AppKit/NSViewInvalidating/display)

A change that requires the system to redraw a view’s content.

[`static var intrinsicContentSize: NSView.Invalidations.IntrinsicContentSize`](/documentation/AppKit/NSViewInvalidating/intrinsicContentSize)

A change that invalidates a view’s intrinsic size.

[`static var layout: NSView.Invalidations.Layout`](/documentation/AppKit/NSViewInvalidating/layout)

A change that invalidates the layout of the containing view’s subviews.

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

A change that invalidates the restorable state of the view.

### Supporting Types

[`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.

[`enum Invalidations`](/documentation/AppKit/NSView/Invalidations)

Changes that cause aspects of a view to be invalid and require an update.

## Relationships

### Conforming Types

[`Layout`](/documentation/AppKit/NSView/Invalidations/Layout)

[`Tuple`](/documentation/AppKit/NSView/Invalidations/Tuple)

[`IntrinsicContentSize`](/documentation/AppKit/NSView/Invalidations/IntrinsicContentSize)

[`Constraints`](/documentation/AppKit/NSView/Invalidations/Constraints)

[`Display`](/documentation/AppKit/NSView/Invalidations/Display)

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

---

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)