2

I am using SwiftUI UIScrollView. Right now when user drag the screen above the screen height, some white space will appear and the same when user keep scrolling by the end of the screen content.

I am wondering if there’s any way to fix the UIScrollView so that the user cannot keep dragging once they reached the end of the screen content or cannot exceed the screen content height?

Thank you so much!!!!

Harish
  • 2,496
  • 4
  • 24
  • 48
iOSTok
  • 29
  • 1
  • I assume you mean `ScrollView` not `UIScrollView`. UIKit's `UIScrollView` has [`bounces`](https://developer.apple.com/documentation/uikit/uiscrollview/1619420-bounces), but the SwiftUI counterpart `ScrollView` does not seem to have this property (yet). – meaning-matters Mar 10 '20 at 09:46

0 Answers0