I want to create two gestures for my app. Single tap and double tap. Each gesture represent different action that I am going to take. I have the following code but it only fires a single tap:
private func registerGestureRecognizers() {
let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(tapped))
tapGestureRecognizer.numberOfTapsRequired = 1
let doubleTapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(doubleTapped))
doubleTapGestureRecognizer.numberOfTapsRequired = 2
self.sceneView.addGestureRecognizer(tapGestureRecognizer)
self.sceneView.addGestureRecognizer(doubleTapGestureRecognizer)
}