mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3667 from omnivore-app/ios/enable-fullscreen
Enable fullscreen mode
This commit is contained in:
commit
3bb12a09df
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue