MESSENGER-3707 new login flow and welcome integration

This commit is contained in:
Frank Rotermund
2022-11-30 18:10:20 +01:00
parent a37881ff16
commit 23021f6cbb
15 changed files with 172 additions and 41 deletions

View File

@@ -98,7 +98,7 @@ struct AuthenticationLoginScreen: View {
/// The form with text fields for username and password, along with a submit button.
var loginForm: some View {
VStack(spacing: 14) {
RoundedBorderTextField(placeHolder: VectorL10n.authenticationLoginUsername,
RoundedBorderTextField(placeHolder: BWIL10n.authenticationLoginUsername,
text: $viewModel.username,
isFirstResponder: false,
configuration: UIKitTextInputConfiguration(returnKeyType: .next,
@@ -118,13 +118,15 @@ struct AuthenticationLoginScreen: View {
onCommit: submit)
.accessibilityIdentifier("passwordTextField")
Button { viewModel.send(viewAction: .forgotPassword) } label: {
Text(VectorL10n.authenticationLoginForgotPassword)
.font(theme.fonts.body)
if !BWIBuildSettings.shared.bumLoginFlowLayout {
Button { viewModel.send(viewAction: .forgotPassword) } label: {
Text(VectorL10n.authenticationLoginForgotPassword)
.font(theme.fonts.body)
}
.frame(maxWidth: .infinity, alignment: .trailing)
.padding(.bottom, 8)
}
.frame(maxWidth: .infinity, alignment: .trailing)
.padding(.bottom, 8)
Button(action: submit) {
Text(VectorL10n.next)
}