I want user tap the tab bar item to let scroll view scroll to top.
If just set content offset like below, the animation is not same as tapping the status bar to scroll to top in iOS 11.
scrollView.setContentOffset(CGPoint(x: 0, y: -scrollView.adjustedContentInset.top), animated: true)
I found in the App Store app, when user tap the tab bar item, the page will scroll to top, and the animation is same as tapping the status bar, how to archive this animation?
scrollRectToVisible- Brandon