hide nav title if text field is focused on email auth view

This commit is contained in:
Satindar Dhillon 2022-08-02 15:24:52 -07:00
parent f08029643b
commit 38fcbeb9a1
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ struct EmailLoginFormView: View {
Spacer()
}
}
.navigationTitle("Sign In")
.navigationTitle(focusedField == nil ? "Sign In" : "")
}
}

View file

@ -213,7 +213,7 @@ struct EmailSignupFormView: View {
Spacer()
}
}
.navigationTitle("Sign Up")
.navigationTitle(focusedField == nil ? "Sign Up" : "")
.task {
viewModel.configureUsernameValidation(dataService: dataService)
}