I'm using ContextLabel to parse @ , # and URL's. This is the best solution i found, cause it sizes correctly and dont affect performance. It firstly parses string at input and than converts it to NSAttributedString
and after this assigns it to attributedText
property of UILabel
. Everything works as expected, except tail truncation - it's very incorrect ( see pic below )
Where shall i start digging - is it wrong attributes on attributed string? Or label layout issue? Thanks!