UIScrollViewDelegate
The interface for the delegate of a scroll view.
Declaration
@MainActor protocol UIScrollViewDelegate : NSObjectProtocolOverview
The methods that the UIScrollViewDelegate protocol declares allow the adopting delegate to respond to messages from the UIScrollView class. The delegate responds to and affects operations like scrolling, zooming, deceleration of scrolled content, and scrolling animations.
Topics
Responding to scrolling and dragging
scrollViewDidScroll(_:)scrollViewWillBeginDragging(_:)scrollViewWillEndDragging(_:withVelocity:targetContentOffset:)scrollViewDidEndDragging(_:willDecelerate:)scrollViewShouldScrollToTop(_:)scrollViewDidScrollToTop(_:)scrollViewWillBeginDecelerating(_:)scrollViewDidEndDecelerating(_:)
Managing zooming
viewForZooming(in:)scrollViewWillBeginZooming(_:with:)scrollViewDidEndZooming(_:with:atScale:)scrollViewDidZoom(_:)