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

# textLayoutManager(_:retrieveCachedTextAttachmentViewProviderFor:)

## Declaration

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