Kaynağa Gözat

Merge pull request #151 from deltachat/login_adv_field

Disable autocorrection and auto capitalization on advanced input fields
cyBerta 6 yıl önce
ebeveyn
işleme
190230d7fe

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

@@ -67,6 +67,9 @@ class AccountSetupController: UITableViewController {
         let cell = TextFieldCell(description: "IMAP Server", placeholder: DCConfig.mailServer ?? DCConfig.configuredMailServer, delegate: self)
         let cell = TextFieldCell(description: "IMAP Server", placeholder: DCConfig.mailServer ?? DCConfig.configuredMailServer, delegate: self)
         cell.accessibilityIdentifier = "IMAPServerCell"
         cell.accessibilityIdentifier = "IMAPServerCell"
         cell.textField.tag = 2
         cell.textField.tag = 2
+        cell.textField.autocorrectionType = .no
+        cell.textField.spellCheckingType = .no
+        cell.textField.autocapitalizationType = .none
         return cell
         return cell
     }()
     }()
 
 
@@ -103,6 +106,9 @@ class AccountSetupController: UITableViewController {
         let cell = TextFieldCell(description: "SMTP Server", placeholder: DCConfig.sendServer ?? DCConfig.configuredSendServer, delegate: self)
         let cell = TextFieldCell(description: "SMTP Server", placeholder: DCConfig.sendServer ?? DCConfig.configuredSendServer, delegate: self)
         cell.accessibilityIdentifier = "SMTPServerCell"
         cell.accessibilityIdentifier = "SMTPServerCell"
         cell.textField.tag = 4
         cell.textField.tag = 4
+        cell.textField.autocorrectionType = .no
+        cell.textField.spellCheckingType = .no
+        cell.textField.autocapitalizationType = .none
         return cell
         return cell
     }()
     }()