From 7316ceed9d781ade6f10c4daa36e08b1829aef87 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 30 Sep 2019 08:07:12 -0500 Subject: [PATCH] Use newish keyboard modifier for username/email fields. Issue #1065 --- iOS/Settings/Account/SettingsFeedbinAccountView.swift | 4 +++- iOS/Settings/Account/SettingsReaderAPIAccountView.swift | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/iOS/Settings/Account/SettingsFeedbinAccountView.swift b/iOS/Settings/Account/SettingsFeedbinAccountView.swift index 1dad3a572..511318a81 100644 --- a/iOS/Settings/Account/SettingsFeedbinAccountView.swift +++ b/iOS/Settings/Account/SettingsFeedbinAccountView.swift @@ -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: diff --git a/iOS/Settings/Account/SettingsReaderAPIAccountView.swift b/iOS/Settings/Account/SettingsReaderAPIAccountView.swift index c091fbdc8..9e4218e9a 100644 --- a/iOS/Settings/Account/SettingsReaderAPIAccountView.swift +++ b/iOS/Settings/Account/SettingsReaderAPIAccountView.swift @@ -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) }