diff --git a/Sources/XCoordinator/GestureRecognizerTarget.swift b/Sources/XCoordinator/GestureRecognizerTarget.swift index 65681fe8..69907be7 100755 --- a/Sources/XCoordinator/GestureRecognizerTarget.swift +++ b/Sources/XCoordinator/GestureRecognizerTarget.swift @@ -24,13 +24,13 @@ internal class Target: GestureRecognizer self.handler = handler self.gestureRecognizer = gestureRecognizer // The method signature "handle(_ gestureRecognizer: UIGestureRecognizer)" is in conflict with validation Apple, use another name : "handleMyGesture" - gestureRecognizer.addTarget(self, action: #selector(handleMyGesture)) + gestureRecognizer.addTarget(self, action: #selector(handleGesture(of: ))) } // MARK: Target actions @objc - private func handleMyGesture(_ gestureRecognizer: UIGestureRecognizer) { + private func handleGesture(of gestureRecognizer: UIGestureRecognizer) { guard let recognizer = gestureRecognizer as? GestureRecognizer else { return } handler(recognizer) }