Unleash the power of UIScrollView
when just using SwiftUI ScrollView
.
A dummy "spy" view you can add inside your ScrollView
that will attach a UILongPressGestureRecognizer
to it and gives you a binding to the point where the finger is in the direct superview of the spy.
SwiftUI ScrollView
is getting better every release, but currently (iOS 14) you can't add extra gesture recognizers. This is often needed for more complex interactions, this little spy gets that job done.