scrollViewWillBeginDecelerating(_:)
Tells the delegate that the scroll view is starting to decelerate the scrolling movement.
Declaration
optional func scrollViewWillBeginDecelerating(_ scrollView: UIScrollView)Parameters
- scrollView:
The scroll-view object that’s decelerating the scrolling of the content view.
Discussion
The scroll view calls this method as the user’s finger touches up as it’s moving during a scrolling operation; the scroll view continues to move a short distance afterwards. The isDecelerating property of UIScrollView controls deceleration.