---
title: "webViewScrollInputBehavior(_:for:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/webviewscrollinputbehavior(_:for:)"
---

# webViewScrollInputBehavior(_:for:)

Enables or disables scrolling in web views when using particular inputs.

## Declaration

```swift
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

Return Value A view with the configured scroll input behavior for web views.

## See Also

### Displaying web content

- [WebView](webkit/webview-swift.struct.md)
- [WebPage](webkit/webpage.md)
- [onWebViewImmersiveEnvironmentRequest(shouldAllow:present:dismiss:)](swiftui/view/onwebviewimmersiveenvironmentrequest(shouldallow:present:dismiss:).md)
- [webViewBackForwardNavigationGestures(_:)](swiftui/view/webviewbackforwardnavigationgestures(_:).md)
- [webViewContentBackground(_:)](swiftui/view/webviewcontentbackground(_:).md)
- [webViewContextMenu(menu:)](swiftui/view/webviewcontextmenu(menu:).md)
- [webViewElementFullscreenBehavior(_:)](swiftui/view/webviewelementfullscreenbehavior(_:).md)
- [webViewLinkPreviews(_:)](swiftui/view/webviewlinkpreviews(_:).md)
- [webViewMagnificationGestures(_:)](swiftui/view/webviewmagnificationgestures(_:).md)
- [webViewOnScrollGeometryChange(for:of:action:)](swiftui/view/webviewonscrollgeometrychange(for:of:action:).md)
- [webViewScrollPosition(_:)](swiftui/view/webviewscrollposition(_:).md)
- [webViewTextSelection(_:)](swiftui/view/webviewtextselection(_:).md)
