Category "long-press"

Button with double action (tap & long press) in SwiftUI

Is it possible in SwiftUI to set a button with an action on tap and a different action on long press ? I have tried this: Button(action: { self.handleButton

prevent click event on long press

I have the following angular2 template: <div (click)="foo()"> <img (longPress)="bar(1)" (click)="foobar(1)" /> <img (longPress)="bar(2)" (