Post

Replies

Boosts

Views

Activity

Reply to SwiftUI list does not scroll using 2-finger swipe on trackpad
I think that there is a gesture recogniser for 2-finger swipe gesture on trackpad (which is the same as moving the scroll wheel on a mouse). See here - https://developer.apple.com/documentation/uikit/pointer_interactions/integrating_pointer_interactions_into_your_ipad_app near the bottom of the page. It says: “The UIPanGestureRecognizer recognizes continuous scrolling that originates from devices like the trackpad.” I believe this gesture is built into scroll views in SwiftUI and we can get it for free as a developer. My point is: the scroll gesture makes the view freeze in the particular situation I’ve mentioned in my very first post. And I suspect it is a bug of SwiftUI.
May ’21