Adding and Viewing Cars: Designing the Landscape Constraints

Sometimes landscape might have different functionality from portrait, as in the Apple Stocks and Calendar apps. Each of these apps has two different scenes, each with its own constraints. In your app, landscape has the same behavior, visual elements, and grouping as portrait, so there is just one scene. Either way, you design landscape constraints the same way you do portrait constraints.

Your first design decisions are how the add and view groups look in portrait and where the separator view goes. When you know the desired layout, you can design the constraints and see how they differ from portrait.

The simplest approach is to change to a left-to-right (that is, leading-to-trailing) ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming 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.