republik / app

The app: a thin wrapper for persistent auth, app store presence, notification, background audio and convenience.
https://www.republik.ch/app
Other
11 stars 2 forks source link

iPhone 14 Pro dynamic island makes header unusable. #269

Closed trm217 closed 2 years ago

trm217 commented 2 years ago

Description

On the iPhone 14 Pro, one can't interact with the header (which prevents login, navigation and the audio-player) due to the webview being rendered underneath the dynamic island. (See the screenshot)

image

How to resolve

We must update the SafeAreaView to also handle the 'top' edge (to be inserted here). This would be an easy fix, but unfortunately the status-bar causes a large gap between the useable top of the screen and the webview. (See the second screenshot, it occurs on all devices)

image

An option would be to animate the status-bar and only render the height if the status bar is to be shown. This would push down the web-view when it is showing, but then move the web-view back up once the status-bar is done loading.