6. Building with Auto Layout
Designing for Auto Layout changes the way you build interfaces. It’s a descriptive system that steps away from exact metrics like frames and centers. You focus on expressing relationships between views, describing how items follow one another onscreen. You uncover the natural relationships in your design and detail them through constraint-based rules.
In return, your interfaces gain flexibility. Auto Layout articulates many more conditions than “allow this view to stretch” and “pin this edge.” Its design vocabulary leapfrogs past Autosizing’s springs and struts to provide a more nimble and serious visual construction language.
This chapter introduces the expressiveness of Auto Layout design, spotlighting its underlying ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access