Use newish keyboard modifier for username/email fields. Issue #1065

This commit is contained in:
Maurice Parker 2019-09-30 08:07:12 -05:00
parent 5717c84067
commit 7316ceed9d
2 changed files with 6 additions and 2 deletions

View File

@ -28,7 +28,9 @@ struct SettingsFeedbinAccountView : View {
Spacer()
}
) {
TextField("Email", text: $viewModel.email).textContentType(.emailAddress)
TextField("Email", text: $viewModel.email)
.keyboardType(.emailAddress)
.textContentType(.emailAddress)
SecureField("Password", text: $viewModel.password)
}
Section(footer:

View File

@ -29,7 +29,9 @@ struct SettingsReaderAPIAccountView : View {
Spacer()
}
) {
TextField("Email", text: $viewModel.email).textContentType(.username)
TextField("Email", text: $viewModel.email)
.keyboardType(.emailAddress)
.textContentType(.emailAddress)
SecureField("Password", text: $viewModel.password)
TextField("API URL:", text: $viewModel.apiURL).textContentType(.URL)
}