Chapter 26. Working with Auto Layout
This chapter covers
- Auto Layout
- Stack views
- Constraints
So far we haven’t focused much on ensuring that apps work across all different screen sizes, but we will now!
It’s important that all of your apps work on the different screen sizes that you’re building for, or your end users won’t be happy. Apple provides some classes that make it easy to lay out the scenes so they expand and contract based on the size of the screen the apps are running on. Stack views are classes that allow you to lay out the scenes in either rows or columns. If you think about the majority of the apps you use, most scenes can be divided by imaginary lines into rows and columns.