<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/webViewScrollInputBehavior(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP08_WebKit_aB0E03webC19ScrollInputBehavior_3forQrAA0ghI0V_AA0gH4KindVtF"
  },
  "title" : "webViewScrollInputBehavior(_:for:)"
}
-->

# webViewScrollInputBehavior(_:for:)

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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)