<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -",
    "macOS: 13.3.0 -",
    "tvOS: 16.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/EnvironmentValues/horizontalScrollBounceBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17EnvironmentValuesVAAE30horizontalScrollBounceBehaviorAA0fgH0Vvp"
  },
  "title" : "horizontalScrollBounceBehavior"
}
-->

# horizontalScrollBounceBehavior

The scroll bounce mode for the horizontal axis of scrollable views.

```
var horizontalScrollBounceBehavior: ScrollBounceBehavior { get set }
```

## Discussion

Use the [`scrollBounceBehavior(_:axes:)`](/documentation/SwiftUI/View/scrollBounceBehavior(_:axes:)) view modifier to set this
value in the [`Environment`](/documentation/SwiftUI/Environment).

---

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)