<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIScrollView/bounces",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIScrollView(py)bounces"
  },
  "title" : "bounces"
}
-->

# bounces

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

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

## Discussion

If the value of this property is <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/false>, scrolling stops immediately at the content boundary without bouncing. The default value is <doc://com.apple.documentation/documentation/Swift/true>.

Setting [`bounces`](/documentation/UIKit/UIScrollView/bounces) is equivalent to setting both [`bouncesHorizontally`](/documentation/UIKit/UIScrollView/bouncesHorizontally) and [`bouncesVertically`](/documentation/UIKit/UIScrollView/bouncesVertically) to the same value. To set different behavior for the two axes, set those properties to distinct values.

---

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)