webViewScrollInputBehavior(_:for:)
Enables or disables scrolling in web views when using particular inputs.
Declaration
nonisolated func webViewScrollInputBehavior(_ behavior: ScrollInputBehavior, for input: ScrollInputKind) -> some View
Parameters
- behavior:
Whether scrolling should be enabled or disabled for this input.
- input:
The input for which to enable or disable scrolling.
Return Value
A view with the configured scroll input behavior for web views.
See Also
Displaying web content
WebViewWebPageonWebViewImmersiveEnvironmentRequest(shouldAllow:present:dismiss:)webViewBackForwardNavigationGestures(_:)webViewContentBackground(_:)webViewContextMenu(menu:)webViewElementFullscreenBehavior(_:)webViewLinkPreviews(_:)webViewMagnificationGestures(_:)webViewOnScrollGeometryChange(for:of:action:)webViewScrollPosition(_:)webViewTextSelection(_:)