Texture
Texture copied to clipboard
ASTextNode properties: isTruncated, additionalTruncationMessage, truncationAttributedText work only on truncationMode = .byWordWrapping
Hi 👋
I'm using Texture version 3.0.0.
Sample code:
let textNode = ASTextNode()
textNode.maximumNumberOfLines = 1
textNode.truncationMode = .byTruncatingTail
textNode.attributedText = NSAttributedString(string: someLongString)
I'm adding such TextNode to a small container. It's correctly rendered, and truncated, however:
-
textNode.isTruncated
value isfalse
- additionalTruncationMessage is ignored
- truncationAttributedText is ignored
After changing .byTruncatingTail
to .byWordWrapping
everything is fine.
@lukaszgieraltowski Were you able to fix this? I'm having a similar problem