tobihagemann / THLabel

UILabel subclass, which additionally allows shadow blur, inner shadow, stroke text and fill gradient.
https://tobiha.de
Other
665 stars 111 forks source link

Fix layout for RTL mode #49

Closed morozkin closed 4 years ago

morozkin commented 4 years ago

Hi @tobihagemann!

First of all big thanks for your work!

I'd like to contribute a fix related to layout problems for RTL languages. If your label has textAlignment equals to NSTextAlignmentNatural (which is by default starting from iOS 9) and the system language is RTL, you'll end up with the wrong layout because behavior must be identical to NSTextAlignmentRight for this case.

tobihagemann commented 4 years ago

Thank you for your contribution! :+1: