scrollsToTop
A Boolean value that controls whether the scroll-to-top gesture is enabled.
Declaration
final var scrollsToTop: Bool { get set }Discussion
When a person taps the status bar, the scroll view closest to the status bar scrolls to the top, but only if its scrollsToTop property is true, its delegate does not return false from scrollViewShouldScrollToTop:, and it is not already at the top.
On iPhone, this gesture works only if one on-screen scroll view has scrollsToTop == true. If more than one exists, none scroll to the top.
Default is true.