With SwiftUI views, is there a way to change the hold duration needed for the onDrag
event to trigger? There seems to be a hack to do this with UIKit
, as seen in ability to shorten UIDragInteraction's long press timing. However, I couldn't figure out how to make this work with SwiftUI.
Is there a straightforward way to do this? Following the linked question, would I need some wrappers to modify the UIKit gestureRecognizers
property on the SwiftUI view?