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 ...
Get iOS Auto Layout Demystified 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.