Use newish keyboard modifier for username/email fields. Issue #1065
This commit is contained in:
parent
5717c84067
commit
7316ceed9d
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue