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