There was a property in the initializer with ScrollView(alwaysBounceVertical: false) but I cant't seem to find it anymore.
Does anyone know how I can disable the vertical bounce / overscroll on a SwiftUI ScrollView?
Yes, it has been removed from the initializer of ScrollView, now you have to update the appearance of the UIScrollView in order to restrict the scrolling.
UIScrollView.appearance().bounces = false
This line will restrict the scrolling, you can apply this in the AppDelegate(didFinishLaunching) or the init() method of your View.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With