How can I detect the force of a touch gesture in SwiftUI?
I can already do the following:
view.onTapGesture { ... }
But how do I fire a different closure based on touch force, or wrap a UIKit view to achieve this?
How can I detect the force of a touch gesture in SwiftUI?
I can already do the following:
view.onTapGesture { ... }
But how do I fire a different closure based on touch force, or wrap a UIKit view to achieve this?
Copyright © 2021 Jogjafile Inc.
You can use
.contextMenuto display a list of actions for a specific element.