SwfitUI Scroll View Bounce property

Hello everyone,

I am now creating SwiftUI to create a ScrollView. I am wondering how can I disable the user to scroll above the screen height?

Right now I am using SwiftUI and I have a content view embedded in a scroll view

However when the user scroll till the end or above the screen content size, there will be white space

I was told there was a “disable bounce” property in UIKit, but what should I do in SwiftUI’s case?

If not what alternative should I use?

Thank you so much!

@iostok69 Do you still have issues with this?

SwiftUI is still changing and I am sure that they will have parity with UIKit soon, till then we have what we have.

This topic was automatically closed after 166 days. New replies are no longer allowed.