Set account fields content type

This commit is contained in:
Davide De Rosa 2019-03-05 09:45:29 +01:00
parent faa63523e8
commit c0fcb59233
1 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,7 @@ extension AccountViewController: UITableViewDataSource, UITableViewDelegate, Fie
cell.field.text = currentCredentials?.username
cell.field.keyboardType = .emailAddress
cell.field.returnKeyType = .next
cell.field.textContentType = .username
case .password:
cellPassword = cell
@ -198,6 +199,7 @@ extension AccountViewController: UITableViewDataSource, UITableViewDelegate, Fie
cell.field.isSecureTextEntry = true
cell.field.text = currentCredentials?.password
cell.field.returnKeyType = .done
cell.field.textContentType = .password
}
cell.captionWidth = 120.0
cell.delegate = self