zacwest / ZSWTappableLabel

UILabel subclass for links which are tappable, long-pressable, 3D Touchable, and VoiceOverable.
MIT License
169 stars 37 forks source link

Fix non-left text alignment being set #14

Closed zacwest closed 9 years ago

zacwest commented 9 years ago

If the text alignment on the label is set, we need to make sure to inherit the alignment when configuring the attributed string we look at.

Otherwise, for example, centered text will be visually correct but the tap locations will be wrong.

Fixes #2