Post

Replies

Boosts

Views

Activity

Reply to WKWebView detect touch
Hi yLeer, I know it very late to answer but i should answer as well: let tapGesture = UITapGestureRecognizer(target: self, action: #selector(viewTap) ) tapGesture.delegate = self webView.addGestureRecognizer(tapGesture) func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool { return true } func viewTap() { print("View Tap") }
Topic: Safari & Web SubTopic: General Tags:
Feb ’23