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

# textViewportLayoutControllerDidLayout(_:)

The method the framework calls when the text viewport layout controller finishes its layout process.

## Declaration

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

## Parameters

- `textViewportLayoutController`: The doc://com.apple.uikit/documentation/UIKit/NSTextViewportLayoutController.

## Discussion

Discussion Layout information on textViewportLayoutController is up-to-date at the point of this call.

## See Also

### Responding to changes in the viewport

- [textViewportLayoutController(_:configureRenderingSurfaceFor:)](uikit/nstextviewportlayoutcontrollerdelegate/textviewportlayoutcontroller(_:configurerenderingsurfacefor:).md)
- [textViewportLayoutControllerWillLayout(_:)](uikit/nstextviewportlayoutcontrollerdelegate/textviewportlayoutcontrollerwilllayout(_:).md)
- [textViewportLayoutControllerReceivedSetNeedsLayout(_:)](uikit/nstextviewportlayoutcontrollerdelegate/textviewportlayoutcontrollerreceivedsetneedslayout(_:).md)
- [viewportBounds(for:)](uikit/nstextviewportlayoutcontrollerdelegate/viewportbounds(for:).md)
