tomvanzummeren/TZStackView

Issues with right to left languages for iOS 7 and 8

joshuafeldman opened this issue · 1 comments

So the issue is that UIStackView was not introduced until iOS 9 and iOS 9 flips all the native controls for right to left languages. So using .Leading and .Trailing is correct since it will respect the language direction. But for iOS 7 and 8 where the user interface direction is not swapped using .Leading and .Trailing is not really appropriate. It should probably be using .Left and .Right. Another small issue is that .Leading and .Trailing is not technically supported in iOS 7.

I am thinking maybe TZStackView needs a .Left and .Right alignment option. Or the class can just handle using the desired layout attribute by iOS version.

This issue is probably pretty specific to different people's usage.