textLayoutManager(_:retrieveCachedTextAttachmentViewProviderFor:)
Returns a cached NSTextAttachmentViewProvider to be associated with a particular attachment.
Declaration
optional func textLayoutManager(_ textLayoutManager: NSTextLayoutManager, retrieveCachedTextAttachmentViewProviderFor attachment: NSTextAttachment) -> NSTextAttachmentViewProvider?Parameters
- textLayoutManager:
The text layout manager sending the message.
- attachment:
The attachment to retrieve a cached view provider for.
Return Value
A previously cached view provider, or nil.