Understanding Stack Views
iOS Development
Topics
● History
● Stack Views
● Comparison
● Properties
○ Alignment
○ Distribution
○ Spacing
● Some points
History
With WWDC 2015, and iOS 9, Apple introduced a special type of view called
Stack View.
Stack Views are...
Auto Layout without Constraints
https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/AutoLayoutWithoutConstraints.html
Stack Views
Constraints
Constraints
Comparison
Alignment
Alignment
Distribution
Spacing
Some points
● It is not a visual element;
● Stack view only manage the layout of its content, so you are responsible to
define the position and (optionally) the size of the stack;
● You can nest stack views;
Nested Stack Views
Thank you!
Henrique Morbin
henrique.morbin@ilegra.com
github.com/Morbix

Understanding stack views