---
title: NSTextLayoutManagerDelegate
framework: uikit
role: symbol
role_heading: Protocol
path: uikit/nstextlayoutmanagerdelegate
---

# NSTextLayoutManagerDelegate

Optional methods that delegates implement to respond to layout changes.

## Declaration

```swift
protocol NSTextLayoutManagerDelegate : NSObjectProtocol
```

## Topics

### Responding to layout changes

- [textLayoutManager(_:renderingAttributesForLink:at:defaultAttributes:)](uikit/nstextlayoutmanagerdelegate/textlayoutmanager(_:renderingattributesforlink:at:defaultattributes:).md)
- [textLayoutManager(_:shouldBreakLineBefore:hyphenating:)](uikit/nstextlayoutmanagerdelegate/textlayoutmanager(_:shouldbreaklinebefore:hyphenating:).md)
- [textLayoutManager(_:textLayoutFragmentFor:in:)](uikit/nstextlayoutmanagerdelegate/textlayoutmanager(_:textlayoutfragmentfor:in:).md)

### Reusing text attachment view providers

- [textLayoutManager(_:cacheTextAttachmentViewProvider:for:)](uikit/nstextlayoutmanagerdelegate/textlayoutmanager(_:cachetextattachmentviewprovider:for:).md)
- [textLayoutManager(_:retrieveCachedTextAttachmentViewProviderFor:)](uikit/nstextlayoutmanagerdelegate/textlayoutmanager(_:retrievecachedtextattachmentviewproviderfor:).md)

### Instance Methods

- [textLayoutManager(_:textViewportLayoutControllerFor:)](uikit/nstextlayoutmanagerdelegate/textlayoutmanager(_:textviewportlayoutcontrollerfor:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Managing the layout process

- [delegate](uikit/nstextlayoutmanager/delegate.md)
