Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Sources/Views/CardFormViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ public class CardFormViewController: UIViewController {

let tapGesture = UITapGestureRecognizer(target: self, action: #selector(dismissKeyboard))
tapGesture.cancelsTouchesInView = false
tapGesture.delegate = self
view.addGestureRecognizer(tapGesture)
}

Expand Down Expand Up @@ -497,3 +498,19 @@ extension CardFormViewController: ThreeDSecureProcessHandlerDelegate {
}
}
}

// MARK: UIGestureRecognizerDelegate
extension CardFormViewController: UIGestureRecognizerDelegate {

public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer,
shouldReceive touch: UITouch) -> Bool {
var view = touch.view
while let v = view {
if v is UITextField {
return false
}
view = v.superview
}
return true
}
}
Loading