A function that automatically scrolls to the top when you tap the Status Bar (the part where the top time and battery level are displayed) while the Scroll View is displayed.
It is on by default.
ʻWrite UIScrollView.appearance (). scrollsToTop = false`.
Example:
ScrollView {
...
}.onAppear {
UIScrollView.appearance().scrollsToTop = false
}
Recommended Posts