textLayoutManager(_:cacheTextAttachmentViewProvider:for:)
Notifies the delegate that a view provider associated with a text attachment is about to be invalidated.
Declaration
optional func textLayoutManager(_ textLayoutManager: NSTextLayoutManager, cacheTextAttachmentViewProvider viewProvider: NSTextAttachmentViewProvider, for textAttachment: NSTextAttachment)Parameters
- textLayoutManager:
The text layout manager sending the message.
- viewProvider:
The view provider being invalidated.
- textAttachment:
The attachment associated with the view provider.
Discussion
The delegate can use this to cache the view provider.