Skip to content

Commit

Permalink
Merge pull request #240 from VincentDucastel/fix-warning-testflight-h…
Browse files Browse the repository at this point in the history
…andle

Fix warning message on testflight upload or validation
  • Loading branch information
pauljohanneskraft authored Feb 28, 2023
2 parents de2232b + 42ec07b commit 25bfa59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/XCoordinator/GestureRecognizerTarget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ internal class Target<GestureRecognizer: UIGestureRecognizer>: GestureRecognizer
init(recognizer gestureRecognizer: GestureRecognizer, handler: @escaping (GestureRecognizer) -> Void) {
self.handler = handler
self.gestureRecognizer = gestureRecognizer
gestureRecognizer.addTarget(self, action: #selector(handle))
// The method signature "handle(_ gestureRecognizer: UIGestureRecognizer)" is in conflict with validation Apple, use another name : "handleMyGesture"
gestureRecognizer.addTarget(self, action: #selector(handleGesture(of: )))
}

// MARK: Target actions

@objc
private func handle(_ gestureRecognizer: UIGestureRecognizer) {
private func handleGesture(of gestureRecognizer: UIGestureRecognizer) {
guard let recognizer = gestureRecognizer as? GestureRecognizer else { return }
handler(recognizer)
}
Expand Down

0 comments on commit 25bfa59

Please sign in to comment.