Bläddra i källkod

Disable autocorrection and auto capitalization on advanced input fields

Simon Laux 6 år sedan
förälder
incheckning
3b8bec35fe
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      deltachat-ios/Controller/AccountSetupController.swift

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