The iOS demo app set comment with attachment. However, call the textAttachmentViewProviders
on the fragment return nothing even the image attachment draw on the screen.
The inline doc is:
// Returns NSTextAttachmentViewProvider associated with the receiver. The property contents are only valid with NSTextLayoutFragmentStateLayoutAvailable.
open var textAttachmentViewProviders: [NSTextAttachmentViewProvider] { get }
I have checked the state. The state is available. How can I get the attachment frame when drawing.
Thanks