---
title: invalidateLayout()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstextlayoutfragment/invalidatelayout()
---

# invalidateLayout()

Invalidates any layout information associated with the text layout fragment.

## Declaration

```swift
func invalidateLayout()
```

## See Also

### Drawing the fragment and attachments

- [layoutFragmentFrame](appkit/nstextlayoutfragment/layoutfragmentframe.md)
- [renderingSurfaceBounds](appkit/nstextlayoutfragment/renderingsurfacebounds.md)
- [draw(at:in:)](appkit/nstextlayoutfragment/draw(at:in:).md)
- [textAttachmentViewProviders](appkit/nstextlayoutfragment/textattachmentviewproviders.md)
- [frameForTextAttachment(at:)](appkit/nstextlayoutfragment/framefortextattachment(at:).md)
