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

# NSView.Invalidations.Layout

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

```
struct Layout
```

## Overview

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

## Topics

### Creating the invalidation type

[`func layout()`](/documentation/AppKit/NSView/layout())

Perform layout in concert with the constraint-based layout system.

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

Creates the invalidation type.

### Invalidating the layout

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