From bed8c94a2d209a6eccf75581de1a2fa4d04c02fa Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 7 Apr 2023 21:27:41 +0800 Subject: [PATCH] Fix background scoll color visible in WebReader bounce area --- apple/OmnivoreKit/Sources/App/Views/WebReader/WebReader.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReader.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReader.swift index c2a4aee72..fcf641923 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReader.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReader.swift @@ -56,6 +56,8 @@ struct WebReader: PlatformViewRepresentable { #if os(iOS) webView.isOpaque = false webView.backgroundColor = UIColor(ThemeManager.currentBgColor) + webView.underPageBackgroundColor = UIColor(ThemeManager.currentBgColor) + webView.scrollView.backgroundColor = UIColor(ThemeManager.currentBgColor) webView.scrollView.delegate = context.coordinator webView.scrollView.contentInset.top = readerViewNavBarHeight webView.scrollView.verticalScrollIndicatorInsets.top = readerViewNavBarHeight