Post

Replies

Boosts

Views

Activity

Comment on SwiftUI Gestures: Sequenced Long Press and Drag
While that does work for gaining access to the location of a long press gesture, the solution also captures the drag before the long press has completed. The advantage to using .sequenced is that the drag gesture is not invoked until the long-press has occurred, allowing use within a scrollview (for example).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’25
Comment on SwiftUI Gestures: Sequenced Long Press and Drag
Thank you. Unfortunately this was attempted, and we found no way to access the location of the long press when using onLongPressGesture.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’24
Comment on SwiftUI Gestures: Sequenced Long Press and Drag
While that does work for gaining access to the location of a long press gesture, the solution also captures the drag before the long press has completed. The advantage to using .sequenced is that the drag gesture is not invoked until the long-press has occurred, allowing use within a scrollview (for example).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25