Skip to content

Commit b4ea600

Browse files
chore: auth picker title
1 parent 176f3eb commit b4ea600

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/AuthPickerView.swift

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff 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

1626
extension 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 {

0 commit comments

Comments
 (0)