Commit a50af088 authored by Soomin Lee's avatar Soomin Lee

CustomDialogRendererHandler: Set textContentType on login textfields

parent fb38fc00
......@@ -72,6 +72,9 @@ private extension CustomDialogRendererHandler {
alertController.addTextField {
textField in
usernameField = textField
if #available(iOS 11.0, *) {
textField.textContentType = .username
}
textField.placeholder = NSLocalizedString("USER_LABEL", comment:"")
if username != "" {
textField.text = username
......@@ -81,6 +84,9 @@ private extension CustomDialogRendererHandler {
alertController.addTextField {
textField in
passwordField = textField
if #available(iOS 11.0, *) {
textField.textContentType = .password
}
textField.isSecureTextEntry = true
textField.placeholder = NSLocalizedString("PASSWORD_LABEL", comment:"")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment