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

# scrollViewDidScroll(_:)

Tells the delegate when the user scrolls the content view within the scroll view.

```
optional func scrollViewDidScroll(_ scrollView: UIScrollView)
```

## Parameters

`scrollView`

The scroll-view object in which the scrolling occurred.

## Discussion

The delegate typically implements this method to obtain the change in content offset from `scrollView` and draw the affected portion of the content view.

---

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)