I have a UIStackView that holds 3 UIButtons, A, B, and C, horizontally in that order. The UIStackView is added to a subview of UIViewController's view when device is in Landscape mode. But when the device rotates to portrait mode, I want:
- UIStackView to display buttons vertically in the order B, C, A.
- UIStackView becomes subview of the main UIView of UIViewController as opposed to another subview of controller's view.
Is there an easy way to achieve it in Storyboard without programming or I need to change the autolayout constraints programmatically every time device auto-rotates?