---
title: bounces
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiscrollview/bounces
---

# bounces

A Boolean value that controls whether the scroll view bounces past the edge of content and back again.

## Declaration

```swift
var bounces: Bool { get set }
```

## Discussion

Discussion If the value of this property is true, the scroll view bounces when it encounters a boundary of the content. Bouncing visually indicates that scrolling has reached an edge of the content. If the value is false, scrolling stops immediately at the content boundary without bouncing. The default value is true. Setting bounces is equivalent to setting both bouncesHorizontally and bouncesVertically to the same value. To set different behavior for the two axes, set those properties to distinct values.

## See Also

### Configuring the scroll view

- [isScrollEnabled](uikit/uiscrollview/isscrollenabled.md)
- [isDirectionalLockEnabled](uikit/uiscrollview/isdirectionallockenabled.md)
- [isPagingEnabled](uikit/uiscrollview/ispagingenabled.md)
- [scrollsToTop](uikit/uiscrollview/scrollstotop.md)
- [bouncesHorizontally](uikit/uiscrollview/bounceshorizontally.md)
- [bouncesVertically](uikit/uiscrollview/bouncesvertically.md)
- [alwaysBounceVertical](uikit/uiscrollview/alwaysbouncevertical.md)
- [alwaysBounceHorizontal](uikit/uiscrollview/alwaysbouncehorizontal.md)
