Natural alignment TTTAttributedLabel for Right Aligned Languages

169 views Asked by At

I'm using TTTAttributedLabel in my applications, now when I tried to add Right aligned languages, I encountered an issue that it doesn't support natural alignment for RTL, text is left aligned for RTL too, any suggestions?

1

There are 1 answers

0
Hussein AlOkaily On

simply, set textAlignment to right like this

tttLabel.textAlignment = .right