---
title: basedOnSize
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/scrollbouncebehavior/basedonsize
---

# basedOnSize

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

## Declaration

```swift
static var basedOnSize: ScrollBounceBehavior { get }
```

## Discussion

Discussion The scrollable view bounces along the specified axis if the size of the content exceeeds the size of the scrollable view in that axis.

## See Also

### Bounce behaviors

- [automatic](swiftui/scrollbouncebehavior/automatic.md)
- [always](swiftui/scrollbouncebehavior/always.md)
