I used long press gesture recognizer to set my own wkwebview link actionsheet, however the actionsheet won't appear until I release my finger (I tried recognizer.began
but it does not work...)
So, how can I intercept the long press recognizer? Can I add a timer to stop it? How?
P.s. here's are my code:
//long press to show the action sheet
longPressRecognizer.delegate = self
longPressRecognizer.addTarget(self, action: "onLongPress:")
self.webView.scrollView.addGestureRecognizer(longPressRecognizer)
func onLongPress(gestureRecognizer:UIGestureRecognizer){
longPressSwitch = true
}