Contents

scrollViewDidEndDragging(_:willDecelerate:)

Tells the delegate when dragging ended in the scroll view.

Declaration

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

Parameters

  • scrollView:

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

  • decelerate:

    True if the scrolling movement will continue, but decelerate, after a touch-up gesture during a dragging operation. If the value is 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 property of UIScrollView controls deceleration.

See Also

Responding to scrolling and dragging