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.
So the issue is that
UIStackViewwas not introduced until iOS 9 and iOS 9 flips all the native controls for right to left languages. So using.Leadingand.Trailingis correct since it will respect the language direction. But for iOS 7 and 8 where the user interface direction is not swapped using.Leadingand.Trailingis not really appropriate. It should probably be using.Leftand.Right. Another small issue is that.Leadingand.Trailingis not technically supported in iOS 7.I am thinking maybe
TZStackViewneeds a.Leftand.Rightalignment option. Or the class can just handle using the desired layout attribute by iOS version.