Open WIZOooo opened 5 years ago
I found a tricky way to do this. NSMutableParagraphStyle.firstLineHeadIndent
can be used to make space for the attachment image. And you can overlay the attachment image on the ASTextNode2
at the firstLineHeadIndent
place.
I meet the same problem, any other idea can fix this issue?
same issue. YYLabel
is fine, ASTextNode
and ASTextNode2
is broken.
Hello Guys, I found that the NSTextAttachment is not visible as I set the
ASTextNode2.truncationMode
withNSLineBreakByTruncatingTail
. TheASTextNode2.attributedText
property description says thatFor inline image attachments, add an attribute of key NSAttachmentAttributeName, with a value of an NSTextAttachment.
I addedNSAttachmentAttributeName
toASTextNode2.attributedText
, it doesn’t work though. Any ideas to makeNSTextAttachment
visible inASTextNode2
?