---
title: "textLayoutManager(_:retrieveCachedTextAttachmentViewProviderFor:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nstextlayoutmanagerdelegate/textlayoutmanager(_:retrievecachedtextattachmentviewproviderfor:)"
---

# textLayoutManager(_:retrieveCachedTextAttachmentViewProviderFor:)

## Declaration

```swift
optional func textLayoutManager(_ textLayoutManager: NSTextLayoutManager, retrieveCachedTextAttachmentViewProviderFor attachment: NSTextAttachment) -> NSTextAttachmentViewProvider?
```

## See Also

### Reusing text attachment view providers

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