summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-04-14 14:49:03 +0200
committerAndrej Mihajlov <and@mullvad.net>2021-04-29 15:44:07 +0200
commit2a84407b96d0e05b5892c5d9109e50cf0b0a225f (patch)
tree715ebbf98941abdb3363ad83a23695464fe9e3ab
parentc1d457ab3d7e58701a696e374ed621bc31504352 (diff)
downloadmullvadvpn-2a84407b96d0e05b5892c5d9109e50cf0b0a225f.tar.xz
mullvadvpn-2a84407b96d0e05b5892c5d9109e50cf0b0a225f.zip
Login: make sure the keyboard can be dismissed in formSheet presentation
-rw-r--r--ios/MullvadVPN/LoginViewController.swift5
1 files changed, 5 insertions, 0 deletions
diff --git a/ios/MullvadVPN/LoginViewController.swift b/ios/MullvadVPN/LoginViewController.swift
index c08b7f4e82..ae0d1d4e05 100644
--- a/ios/MullvadVPN/LoginViewController.swift
+++ b/ios/MullvadVPN/LoginViewController.swift
@@ -118,6 +118,11 @@ class LoginViewController: UIViewController, RootContainment {
object: contentView.accountTextField)
}
+ override var disablesAutomaticKeyboardDismissal: Bool {
+ // Allow dismissing the keyboard in .formSheet presentation style
+ return false
+ }
+
// MARK: - Public
func reset() {