I am using ContextLabel to parse @, # and URL. This is the best solution I have found, so it correctly defines and does not affect performance. First, it parses the input string and converts it to NSAttributedString and then assigns the attributedText UILabel property to it. Everything works as expected, except for truncating the tail - this is very wrong (see Figure below)

Where should I start digging - are these the wrong attributes on the attribute string? Or a problem with the layout of labels? Thank you
ios uilabel swift hashtag nsattributedstring
Nikita Pronchik
source share