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

# textViewportLayoutControllerReceivedSetNeedsLayout(_:)

NSTextViewportLayoutControllerDelegate method that the framework calls when the text viewport layout controller receives a setNeedsLayout call. Requires a call to super.

## Declaration

```swift
func textViewportLayoutControllerReceivedSetNeedsLayout(_ 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)
- [textViewportLayoutControllerDidLayout(_:)](uikit/uitextview/textviewportlayoutcontrollerdidlayout(_:).md)
