Enable fullscreen mode
This is needed on iOS to allow the YouTube embed to go fullscreen.
This commit is contained in:
@ -66,6 +66,10 @@ struct WebReader: PlatformViewRepresentable {
|
|||||||
webView.scrollView.verticalScrollIndicatorInsets.top = readerViewNavBarHeight
|
webView.scrollView.verticalScrollIndicatorInsets.top = readerViewNavBarHeight
|
||||||
webView.configuration.userContentController.add(webView, name: "viewerAction")
|
webView.configuration.userContentController.add(webView, name: "viewerAction")
|
||||||
|
|
||||||
|
if #available(iOS 15.4, *) {
|
||||||
|
webView.configuration.preferences.isElementFullscreenEnabled = true
|
||||||
|
}
|
||||||
|
|
||||||
webView.scrollView.indicatorStyle = ThemeManager.currentTheme.isDark ?
|
webView.scrollView.indicatorStyle = ThemeManager.currentTheme.isDark ?
|
||||||
UIScrollView.IndicatorStyle.white :
|
UIScrollView.IndicatorStyle.white :
|
||||||
UIScrollView.IndicatorStyle.black
|
UIScrollView.IndicatorStyle.black
|
||||||
|
|||||||
Reference in New Issue
Block a user