To have the agent check your app’s screens against these numbers, paste the prompt in Give the numbers to the agent.
Explore a device
Pick a platform, a device and, on a foldable, the screen and pose. The drawing is to scale. Hover a row of the table to find that value in the drawing; a layer that is switched off shows while its row is hovered. What the layers draw:- Safe area: the shaded bands are the safe-area insets, where the system draws the status bar, the home indicator, the cutout or a side column; the dashed outline is the safe area. Lay out content inside it and let backgrounds run to the edges.
- System bars: the status bar, the navigation bar (iOS) or top app bar (Android), and the tab bar (iOS) or navigation bar (Android) at their measured positions.
- Corners: the display’s corner radius. The drawing uses circular arcs; iOS displays use continuous corners, whose curve starts farther from the corner than a circular arc of the same radius.
- Cutout: the camera cutout. The iPhone Duo’s camera and reserved block come from the frames iOS reports for them; the other cutouts are drawn schematically, and their area lies inside the top inset.
- Margins: the distance from the safe area’s sides to content, as measured in lists and forms (Margins and spacing).
- Fold: on a foldable’s inner screen, the fold. It separates the two halves only in the half-open pose.
Points, pixels and rounding
iOS lays out in points. A point is 2 pixels on the iPhone SE and the iPads (@2x) and 3 pixels on every other current iPhone (@3x): the iPhone 17’s 402 × 874 pt window is 1206 × 2622 px.
Android lays out in dp, and a dp is dpi ÷ 160 pixels. That ratio is rarely a whole number, so Android sizes are rarely whole dp:
The insets have the same fractions: the Pixel 8’s status bar is 132 px, which is 50.29 dp. Rounded to whole dp these are 411 × 914 and 50; the tables on this page give two decimals where the pixels do not divide evenly. Compose measures and places layouts in whole pixels (
Dp.roundToPx()), so a 16 dp padding on the Pixel 8 is 42 px and a divider 0.5 dp tall is laid out 1 px tall.
iOS has fractional values too: the iPhone 16e’s corner radius is 47.33 pt, which is 142 px at @3x.
Fractional positions matter most for thin lines. A 1-pixel line is 0.33 pt at @3x, 0.5 pt at @2x and 0.38 dp at 2.625. A line whose edges fall between pixels lights the pixels it partly covers in a blended colour, and the line looks soft. Move the line below, then press Snap to whole pixels:
To keep thin lines and edges sharp, put them on multiples of 1 ÷ scale: 0.33 pt at @3x, 0.5 pt at @2x, 0.381 dp at 2.625.
Corner radii
The display’s corners clip anything drawn under them. The radius per device is in the device tables: 62 pt on the iPhone 17, Air and 17 Pro Max, 55 pt on the iPhone 16, 30 pt on the iPad Pro, 39.6 dp on the Pixel 8. The iPhone SE’s display is square. The iPhone Duo’s cover screen has two radii: 8 pt on the two corners on the left and 59 pt on the two on the right in portrait. Content inside the safe area and at least 16 pt from the side edges clears the corners on every measured iPhone and iPad. On the iPhone 17 (radius 62 pt, bottom inset 34 pt), a square-cornered element 16 pt from the side and resting on the safe area’s bottom edge has its corner 8.15 pt inside the display’s curve. The same element moved down to 16 pt from the bottom edge, inside the bottom inset, has its corner cut off by 3.05 pt. An element near a screen corner keeps an even gap to the curve when its own radius is the screen’s radius minus the margin, the concentric radius: on the iPhone 17 with a 16 pt margin, 62 − 16 = 46 pt. In SwiftUI on iOS 26 and later,ConcentricRectangle derives this radius from its container. Set the margin and the card radius below, or press Use the concentric radius:
Safe areas and insets
The insets are top / bottom / left / right in the tables below.- iPhones in portrait reserve the status bar at the top: 59 pt with the Dynamic Island on the iPhone 16, 62 pt on the iPhone 17 and 17 Pro Max, 68 pt on the iPhone Air, 47 pt with the notch on the iPhone 16e. The home indicator takes 34 pt at the bottom. The iPhone SE has a 20 pt status bar and no bottom inset.
- iPhones in landscape hide the status bar. The top inset is 0, the bottom 20 pt, and both sides take the portrait top inset: 59 pt each on the iPhone 16.
- iPads reserve 32 pt at the top and 20 pt at the bottom in both orientations.
- Android phones reserve the status bar (50.29 dp on the Pixel 8) and the 24 dp gesture navigation bar. In landscape the cutout’s side takes the cutout inset (50.29 dp on the Pixel 8) and the status bar drops to 28.19 dp.
- Android tablets and the inner screens of the foldables reserve 32 dp at the bottom.
iOS devices
Android devices
small_phone profile set to 1080 × 2340 px at 480 dpi with a punch-hole cutout. The Pixel Tablet’s size is the Android SDK’s pixel_tablet profile; its insets were read on an emulator of that profile.
System bars
iOS
The tab bar’s capsule overlaps the bottom inset: its bottom edge is 21 pt above the window’s bottom edge, 13 pt inside the 34 pt inset. Content that scrolls under it needs 83 pt of space at the bottom of the window (21 + 62) to scroll clear of it. On the iPads, iPadOS places the tab bar at the top; its frame was not measured here. On the iPhone Duo, where the status bar is a column in a side inset, the tab bar is a 48 pt column in that inset.
Android
Compose Material 3 (1.3.2), measured on the Pixel 8:Margins and spacing
The iOS values were measured on the iPhone 16 (iOS 26.5), the iPhone 17 and the iPhone SE (iOS 27.0) in portrait, and on the iPhone Duo; the iPads and the iPhones in landscape were not measured. The Android values were measured at compact width on the Pixel 8 and the 360 dp phone. Material 3’s layout guidance uses 24 dp margins at medium and expanded width.
Size classes
iOS reports a horizontal and a vertical size class, each compact or regular. Every iPhone is compact × regular in portrait. In landscape the iPhone SE, 16e, 16 and 17 are compact × compact, and the iPhone Air and 17 Pro Max are regular × compact. The iPads and the iPhone Duo’s inner screen are regular × regular in both orientations. Android window size classes are read from the window, not the device:
The Pixel 8 is 914.29 dp wide in landscape, which is expanded width, so a layout that switches on the width class shows its navigation rail there.
Foldables
Choose a foldable in the explorer and its poses appear under Screen.
On the iPhone Duo the status bar is a column at the top of an 84 pt side inset on the cover in portrait and on the inner screen held wide; on the inner screen held tall it sits at the trailing end of the navigation bar’s row, and the top inset (82 pt) holds the navigation bar. An app built with an SDK earlier than iOS 27.1 runs letterboxed on the iPhone Duo: its window is 80 pt shorter along one side, and an 80 pt strip outside the window holds the time. iPhone Duo: App Store prep covers building with both SDKs.
Give the numbers to the agent
Paste this into the chat with the Plan toggle off and edit the device list to the ones your app supports:Related
Design your app with a design system
Turn reference screenshots into the design tokens the agent applies to every screen.
Design prompts that work
The vocabulary and copy-paste prompts for spacing, contrast and tap targets.