It's really disappointing that there are no regression tests for something as fundamental as LongPressGesture. While the modifier version still seems to work, how are we supposed to combine this gesture in an exclusive or sequenced way? Other than maybe revert to UIKit?
I'm not even referring to the (not-so-random) "Gesture: System gesture gate timed out" log message, which, according to these posts (https://forums.developer.apple.com/forums/thread/764189?answerId=809724022#809724022 https://developer.apple.com/forums/thread/730213 ), should simply be ignored. Easier said than done in this situation...
I really hope SwiftUI is open-sourced someday, for the sanity of us all.
Post
Replies
Boosts
Views
Activity
Seems .scrollTargetBehavior(.viewAligned(limitBehavior: .alwaysByOne)) available in iOS 18 do the job (do not forget to add .scrollTargetLayout())
timeline:
initial state
moving the item without changing page change the height of the item
scrolling to page 2
scrolling to page 3
scrolling to page 4 (last)