<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSLayoutManagerDelegate/layoutManagerDidInvalidateLayout(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSLayoutManagerDelegate(im)layoutManagerDidInvalidateLayout:"
  },
  "title" : "layoutManagerDidInvalidateLayout(_:)"
}
-->

# layoutManagerDidInvalidateLayout(_:)

Informs the delegate when the specified layout manager invalidates layout information (not glyph information).

```
optional func layoutManagerDidInvalidateLayout(_ sender: NSLayoutManager)
```

## Parameters

`sender`

The layout manager that invalidated layout.

## Discussion

This method is invoked only when layout was complete and then became invalidated for some reason. Delegates can use this information to show an indicator of background layout or to enable a button that forces immediate layout of text.

---

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)