diff --git a/frontends/ios/BitBoxApp/BitBoxApp/WebView.swift b/frontends/ios/BitBoxApp/BitBoxApp/WebView.swift index 60cf049da1..70886b5e5d 100644 --- a/frontends/ios/BitBoxApp/BitBoxApp/WebView.swift +++ b/frontends/ios/BitBoxApp/BitBoxApp/WebView.swift @@ -128,6 +128,10 @@ struct WebView: UIViewRepresentable { let webView = WKWebView(frame: .zero, configuration: config) webView.navigationDelegate = context.coordinator webView.uiDelegate = context.coordinator + + // Disables automatic content inset adjustment to prevent safe area issues + // https://developer.apple.com/documentation/uikit/uiscrollview/contentinsetadjustmentbehavior-swift.property + webView.scrollView.contentInsetAdjustmentBehavior = .never setHandlers.setMessageHandlers(handlers: MessageHandlers(webView: webView)) let source = """ diff --git a/frontends/web/index.html b/frontends/web/index.html index 015204460f..57aa44e5cf 100644 --- a/frontends/web/index.html +++ b/frontends/web/index.html @@ -2,7 +2,7 @@
- +