<!--
{
  "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/UIScrollViewDelegate/scrollViewDidEndDragging(_:willDecelerate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIScrollViewDelegate(im)scrollViewDidEndDragging:willDecelerate:"
  },
  "title" : "scrollViewDidEndDragging(_:willDecelerate:)"
}
-->

# scrollViewDidEndDragging(_:willDecelerate:)

Tells the delegate when dragging ended in the scroll view.

```
optional func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool)
```

## Parameters

`scrollView`

The scroll-view object that finished scrolling the content view.

`decelerate`

<doc://com.apple.documentation/documentation/Swift/true> if the scrolling movement will continue, but decelerate, after a touch-up gesture during a dragging operation. If the value is <doc://com.apple.documentation/documentation/Swift/false>, scrolling stops immediately upon touch-up.

## Discussion

The scroll view sends this message when the user’s finger touches up after dragging content. The [`isDecelerating`](/documentation/UIKit/UIScrollView/isDecelerating) property of [`UIScrollView`](/documentation/UIKit/UIScrollView) controls deceleration.

---

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)