<!--
{
  "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/ScrollBounceBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI20ScrollBounceBehaviorV"
  },
  "title" : "ScrollBounceBehavior"
}
-->

# ScrollBounceBehavior

The ways that a scrollable view can bounce when it reaches the end of its
content.

```
struct ScrollBounceBehavior
```

## Overview

Use the [`scrollBounceBehavior(_:axes:)`](/documentation/SwiftUI/View/scrollBounceBehavior(_:axes:)) view modifier to set a value
of this type for a scrollable view, like a [`ScrollView`](/documentation/SwiftUI/ScrollView) or a [`List`](/documentation/SwiftUI/List).
The value configures the bounce behavior when people scroll to the end of
the view’s content.

You can configure each scrollable axis to use a different bounce mode.

## Topics

### Bounce behaviors

[`automatic`](/documentation/SwiftUI/ScrollBounceBehavior/automatic)

The automatic behavior.

[`always`](/documentation/SwiftUI/ScrollBounceBehavior/always)

The scrollable view always bounces.

[`basedOnSize`](/documentation/SwiftUI/ScrollBounceBehavior/basedOnSize)

The scrollable view bounces when its content is large enough to require
scrolling.



---

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)