Well-designed UI for iPhone X

UI Designing for iPhone X

Posted by Mansi Shah

8 Aug 20 3 min read

iPhone X Screen Size

To design for iPhone X, let’s know the details about its screen size first.

image

In portrait orientation, the width of the display on iPhone X matches the width of the 4.7" displays of iPhone 6, iPhone 7, and iPhone 8. The display on iPhone X, however, is 145pt taller than a 4.7" display, resulting in roughly 20% additional vertical space for content.

[@portabletext/react] Unknown block type "separator", specify a component for it in the `components.types` prop

Image Assets

iPhone X has a high-resolution display with a scale factor of @3x. So our icons with @3x rendering are used by iPhone X. Also, its noteworthy that Apple recommends to provide resolution-independent PDFs.

[@portabletext/react] Unknown block type "separator", specify a component for it in the `components.types` prop

iPhone Aspect Ratio

iPhone X has a different aspect ratio than 4.7" iPhones

image

Background graphics designed for iPhone 8’s 16:9 aspect ratio will be cropped along the left and right edges on iPhone X if they’re scaled to fill, or letter-boxed if scaled to fit. Similarly, background graphics designed for iPhone X, will either be cropped along the top and bottom edges on iPhone 8 or pillar-boxed. It’s best to compose images so that critical visual information remains visible regardless of the iPhone display’s aspect ratio.

[@portabletext/react] Unknown block type "separator", specify a component for it in the `components.types` prop

The Safe Area

While designing for iPhone X, one thing to ensure is that the layouts fill the screen and aren’t obscured by the device’s rounded corners, sensor housing, or the indicator for accessing the Home screen

These corners should be taken the most care of
safe area for iPhone 8
safe area for iPhone X

Make sure, your content is centered and symmetrically inset so it looks great in any orientation and isn’t clipped ⛑

This is how we will use Safe area in interface builder in xcode 9

One thing to note here is that once you check the Safe Area Layout Guide, all your constraints will be added with respect to the safe area and not the superview.

Also, It is not at all advisable to hide status bar in iPhone X, as the status bar occupies an area of the screen your app probably won’t fully utilize.

image
[@portabletext/react] Unknown block type "separator", specify a component for it in the `components.types` prop

Gestures

The display on iPhone X uses screen-edge gestures to provide access to Home screen, app switcher, Notification Center, and Control Center.

Use edge protect: If your application might require custom screen-edge gestures that take priority over the system’s gestures — the first swipe invokes the app-specific gesture and a second-swipe invokes the system gesture. This behavior (known as edge protect) should be implemented.

[@portabletext/react] Unknown block type "separator", specify a component for it in the `components.types` prop

Be mindful about these 📝

  • Don’t duplicate system-provided keyboard features
  • Avoid placing interactive controls at the very bottom of the screen and in corners
Don’t mask or call special attention to key display features — Don’t attempt to hide the device’s rounded corners, sensor housing, or indicator for accessing the Home screen by placing black bars at the top and bottom of the screen.
Vertically scrollable views, such as tables or collection views, should extend all the way to the bottom of the display rather than being constrained by the Safe Area
For adaptive Layout use hidden property based on size classes variation introduced in xcode 9
[@portabletext/react] Unknown block type "separator", specify a component for it in the `components.types` prop

Source

[@portabletext/react] Unknown block type "separator", specify a component for it in the `components.types` prop

Please feel free to comment, if there’s something more to add, or share your experience in designing for iPhone X.