Browse Source

streamline text input fields in Account Setup, avoid keyboard flickering when switching between cells

cyberta 4 years ago
parent
commit
056130bc2c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      deltachat-ios/Controller/AccountSetupController.swift

+ 6 - 0
deltachat-ios/Controller/AccountSetupController.swift

@@ -148,6 +148,9 @@ class AccountSetupController: UITableViewController, ProgressAlertHandler {
         cell.setText(text: dcContext.mailUser ?? nil)
         cell.textField.tag = tagTextFieldImapLogin
         cell.tag = tagImapUserCell
+        cell.textField.autocorrectionType = .no
+        cell.textField.spellCheckingType = .no
+        cell.textField.autocapitalizationType = .none
         return cell
     }()
 
@@ -205,6 +208,9 @@ class AccountSetupController: UITableViewController, ProgressAlertHandler {
         cell.textField.tag = tagTextFieldSmtpLogin
         cell.setText(text: dcContext.sendUser ?? nil)
         cell.tag = tagSmtpUserCell
+        cell.textField.autocorrectionType = .no
+        cell.textField.spellCheckingType = .no
+        cell.textField.autocapitalizationType = .none
         return cell
     }()