summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2022-06-16 13:57:43 +0200
committerAndrej Mihajlov <and@mullvad.net>2022-06-16 13:57:43 +0200
commit6d3693ab62e306db0e3885e709c46096cdb08d5b (patch)
treeb81b795d46530d06d864c72f28d1ab60c8303e53
parenta6a1319bb55e31e45631f677d6f8cec04933b8d3 (diff)
parent8b5d29f64389d1fb243196f1fc584101e1aa64db (diff)
downloadmullvadvpn-6d3693ab62e306db0e3885e709c46096cdb08d5b.tar.xz
mullvadvpn-6d3693ab62e306db0e3885e709c46096cdb08d5b.zip
Merge branch 'disable-account-camera-capture'
-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 {