long press + drag

SwiftUIGesturesCombine.sequenced ⟩ long press + drag

⭐️ 「長按後才允許拖曳」 (Long Press + Drag)

要按住持續一秒後,才能開始拖曳,如果提前拖曳,手勢會直接變成 .inactive 狀態。

📗 參考:Mastering SwiftUI, Ch. 17: Using Gestures (p.380)

Last updated

Was this helpful?