File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,23 @@ public struct AuthPickerView {
1111 authService. authenticationFlow = authService
1212 . authenticationFlow == . login ? . signUp : . login
1313 }
14+
15+ @ViewBuilder
16+ private var authPickerTitleView : some View {
17+ if authService. authView == . authPicker {
18+ Text ( authService. string. authPickerTitle)
19+ . font ( . largeTitle)
20+ . fontWeight ( . bold)
21+ . padding ( )
22+ }
23+ }
1424}
1525
1626extension AuthPickerView : View {
1727 public var body : some View {
1828 ScrollView {
1929 VStack {
20- if authService. authView == . authPicker {
21- Text ( authService. string. authPickerTitle)
22- . font ( . largeTitle)
23- . fontWeight ( . bold)
24- . padding ( )
25- }
30+ authPickerTitleView
2631 if authService. authenticationState == . authenticated {
2732 SignedInView ( )
2833 } else if authService. authView == . passwordRecovery {
You can’t perform that action at this time.
0 commit comments