Merge pull request #3667 from omnivore-app/ios/enable-fullscreen

Enable fullscreen mode
This commit is contained in:
Jackson Harper
2024-03-13 22:25:59 +08:00
committed by GitHub

View File

@ -66,6 +66,10 @@ struct WebReader: PlatformViewRepresentable {
webView.scrollView.verticalScrollIndicatorInsets.top = readerViewNavBarHeight
webView.configuration.userContentController.add(webView, name: "viewerAction")
if #available(iOS 15.4, *) {
webView.configuration.preferences.isElementFullscreenEnabled = true
}
webView.scrollView.indicatorStyle = ThemeManager.currentTheme.isDark ?
UIScrollView.IndicatorStyle.white :
UIScrollView.IndicatorStyle.black