summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ios/MullvadVPN/AccountTextField.swift9
1 files changed, 9 insertions, 0 deletions
diff --git a/ios/MullvadVPN/AccountTextField.swift b/ios/MullvadVPN/AccountTextField.swift
index 6973edb1fc..8a4016ed73 100644
--- a/ios/MullvadVPN/AccountTextField.swift
+++ b/ios/MullvadVPN/AccountTextField.swift
@@ -55,6 +55,15 @@ class AccountTextField: CustomTextField, UITextFieldDelegate {
}
}
+ override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
+ if #available(iOS 15.0, *) {
+ if action == #selector(captureTextFromCamera(_:)) {
+ return false
+ }
+ }
+ return super.canPerformAction(action, withSender: sender)
+ }
+
// MARK: - UITextFieldDelegate
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {