From 38fcbeb9a161f3c6ade19ab0a167ee3e2325218e Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Tue, 2 Aug 2022 15:24:52 -0700 Subject: [PATCH] hide nav title if text field is focused on email auth view --- .../App/Views/Registration/EmailAuth/EmailLoginFormView.swift | 2 +- .../App/Views/Registration/EmailAuth/EmailSignupFormView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailLoginFormView.swift b/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailLoginFormView.swift index 0b12960c1..eceda710a 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailLoginFormView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailLoginFormView.swift @@ -135,7 +135,7 @@ struct EmailLoginFormView: View { Spacer() } } - .navigationTitle("Sign In") + .navigationTitle(focusedField == nil ? "Sign In" : "") } } diff --git a/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailSignupFormView.swift b/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailSignupFormView.swift index 73e481a44..abd5786dc 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailSignupFormView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Registration/EmailAuth/EmailSignupFormView.swift @@ -213,7 +213,7 @@ struct EmailSignupFormView: View { Spacer() } } - .navigationTitle("Sign Up") + .navigationTitle(focusedField == nil ? "Sign Up" : "") .task { viewModel.configureUsernameValidation(dataService: dataService) }