
Respect key display and system features in each platform. Ensure an adaptable interface by respecting system-defined safe areas, margins, and guides and specifying layout modifiers to fine-tune the placement of views in your hierarchy. People expect your experience to work well and remain familiar when they rotate their device, resize a window, add another display, or switch to a different device.



Safe areas are essential for avoiding a device’s interactive and display features, like the Dynamic Island on iPhone or the camera housing on some Mac models.

You can also define custom layout guides.Ī safe area defines the area within a view that isn’t covered by a navigation bar, tab bar, toolbar, or other views a window or scene might provide. The system includes predefined layout guides that make it easy to apply standard margins around content and restrict the width of text for optimal readability. Using a consistent layout that adapts to various contexts makes your experience more approachable and helps people enjoy their favorite apps and games on all their devices.Ī layout guide defines a rectangular region that helps you position, align, and space your content on the screen.
