---
title: "textViewportLayoutControllerDidLayout(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextview/textviewportlayoutcontrollerdidlayout(_:)"
---

# textViewportLayoutControllerDidLayout(_:)

NSTextViewportLayoutControllerDelegate method that the framework calls when the text viewport layout controller finishes its layout process. Requires a call to super.

## Declaration

```swift
func textViewportLayoutControllerDidLayout(_ textViewportLayoutController: NSTextViewportLayoutController)
```

## Mentioned in

Managing viewport layout and attachment reuse in text views

## See Also

### Customizing viewport layout

- [viewportBounds(for:)](uikit/uitextview/viewportbounds(for:).md)
- [textViewportLayoutControllerWillLayout(_:)](uikit/uitextview/textviewportlayoutcontrollerwilllayout(_:).md)
- [textViewportLayoutControllerReceivedSetNeedsLayout(_:)](uikit/uitextview/textviewportlayoutcontrollerreceivedsetneedslayout(_:).md)
