<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScrollView/verticalScrollElasticity",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScrollView(py)verticalScrollElasticity"
  },
  "title" : "verticalScrollElasticity"
}
-->

# verticalScrollElasticity

The scroll view’s vertical scrolling elasticity mode.

```
var verticalScrollElasticity: NSScrollView.Elasticity { get set }
```

## Discussion

A scroll view can scroll its contents past its bounds to achieve an elastic effect.

When set to [`NSScrollView.Elasticity.automatic`](/documentation/AppKit/NSScrollView/Elasticity/automatic), scrolling the vertical axis beyond its document bounds only occurs if any of the following are true: the vertical scroller is visible, the content height is greater than view height, or the horizontal scroller hidden. The default value is [`NSScrollView.Elasticity.automatic`](/documentation/AppKit/NSScrollView/Elasticity/automatic).

See [`NSScrollView.Elasticity`](/documentation/AppKit/NSScrollView/Elasticity) for possible 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)