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

# NSView.Invalidations.Constraints

A change that invalidates a view’s constraints.

```
struct Constraints
```

## Overview

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

## Topics

### Creating the invalidation type

[`var constraints: [NSLayoutConstraint]`](/documentation/AppKit/NSView/constraints)

Returns the constraints held by the view.

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

Creates the invalidation type.

### Invalidating the constraints

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