From e757dbfe6864e1628abc2ae0d215e2bfa5ffeb74 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 17 Feb 2022 21:22:19 -0800 Subject: [PATCH] Use navBarHeight for the ... nav bar height --- apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift b/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift index e026a046f..e65cda9ff 100644 --- a/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift +++ b/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift @@ -29,13 +29,13 @@ import WebKit let webView = WebView(frame: CGRect.zero) let contentController = WKUserContentController() - webView.scrollView.contentInset.top = LinkItemDetailView.navBarHeight webView.navigationDelegate = context.coordinator webView.isOpaque = false webView.backgroundColor = UIColor.clear webView.configuration.userContentController = contentController webView.scrollView.delegate = context.coordinator - webView.scrollView.scrollIndicatorInsets = UIEdgeInsets(top: 50, left: 0, bottom: 0, right: 0) + webView.scrollView.contentInset.top = LinkItemDetailView.navBarHeight + webView.scrollView.scrollIndicatorInsets = UIEdgeInsets(top: LinkItemDetailView.navBarHeight, left: 0, bottom: 0, right: 0) for action in WebViewAction.allCases { webView.configuration.userContentController.add(context.coordinator, name: action.rawValue)