scrollViewDidScrollToTop(_:)
Tells the delegate that the scroll view scrolled to the top of the content.
Declaration
optional func scrollViewDidScrollToTop(_ scrollView: UIScrollView)Parameters
- scrollView:
The scroll-view object that perform the scrolling operation.
Discussion
The scroll view sends this message when it finishes scrolling to the top of the content. It might call it immediately if the top of the content is already shown. For the scroll-to-top gesture (a tap on the status bar) to be effective, the scrollsToTop property of the UIScrollView must be set to true.