---
title: invalidateLayout()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/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](uikit/nstextlayoutfragment/layoutfragmentframe.md)
- [renderingSurfaceBounds](uikit/nstextlayoutfragment/renderingsurfacebounds.md)
- [draw(at:in:)](uikit/nstextlayoutfragment/draw(at:in:).md)
- [textAttachmentViewProviders](uikit/nstextlayoutfragment/textattachmentviewproviders.md)
- [frameForTextAttachment(at:)](uikit/nstextlayoutfragment/framefortextattachment(at:).md)
