components icon indicating copy to clipboard operation
components copied to clipboard

iPhone xs/11 notch support

Open ang3lx opened this issue 5 years ago • 1 comments

Hello I've submitted app on store developed with mobileui, but there is a problem with iPhone with notch and app was rejected There is a whitebar on top How can fix this ui issue ?

ang3lx avatar Dec 04 '19 08:12 ang3lx

Here's what I did to fix it. The specifics depend on your app layout (whether you have a header, what you want the top of the screen to look like, whether you have buttons on the bottom of the screen, etc).

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, viewport-fit=cover" />
.app {
  padding-top: env(safe-area-inset-top);
}

#header {
  top: env(safe-area-inset-top);
}

jhurliman avatar Jan 10 '20 19:01 jhurliman