UIStackView layout question


#1

I have a question about UIStackView. So I have a StackView in hAnywAny, Axis set to Vertical. It works fine in Portrait modes also. But when I go to wAnyhCompact to design landscape layout there’s a problem. I select my StackView and change Axis to Horizontal and what happens is it changes to horizontal in all my views including hAnywAny…
So do I need to create separate StackView for landscape or is there way to tweak it?


#2

@kc_dev

I would probably control it in code. Try this tutorial, since it’s still in beta there might be bugs.

http://useyourloaf.com/blog/2015/07/06/adapting-stack-views-with-size-classes.html

You could always submit a bug to apple or a feature request at bugreport.apple.com