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!

26.1. Changing the layout to work for all screen sizes

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 ...

Get Anyone Can Create an App now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.