Use the new verticalScrollIndicatorInsets instead of scrollIndicatorInsets

This commit is contained in:
Jackson Harper
2022-02-17 21:55:22 -08:00
parent e757dbfe68
commit 8d743617cb

View File

@ -35,7 +35,7 @@ import WebKit
webView.configuration.userContentController = contentController
webView.scrollView.delegate = context.coordinator
webView.scrollView.contentInset.top = LinkItemDetailView.navBarHeight
webView.scrollView.scrollIndicatorInsets = UIEdgeInsets(top: LinkItemDetailView.navBarHeight, left: 0, bottom: 0, right: 0)
webView.scrollView.verticalScrollIndicatorInsets = UIEdgeInsets(top: LinkItemDetailView.navBarHeight, left: 0, bottom: 0, right: 0)
for action in WebViewAction.allCases {
webView.configuration.userContentController.add(context.coordinator, name: action.rawValue)