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

# layout

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

```
static var layout: NSView.Invalidations.Layout { get }
```

## Discussion

Use this invalidation type to set [`needsLayout`](/documentation/AppKit/NSView/needsLayout) so that a change in property value triggers the system to update the layout of the containing view’s subviews.

---

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)