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

# constraints

A change that invalidates a view’s constraints.

```
static var constraints: NSView.Invalidations.Constraints { get }
```

## Discussion

Use this invalidation type to set [`needsUpdateConstraints`](/documentation/AppKit/NSView/needsUpdateConstraints) so that a change in property value triggers the containing view to update constraints.

---

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)