File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1+ import FirebaseCore
12import SwiftUI
23
34@MainActor
@@ -29,14 +30,14 @@ extension AuthPickerView: View {
2930 if authService. emailSignInEnabled {
3031 Text ( authService. authenticationFlow == . login ? authService. string
3132 . emailLoginFlowLabel : authService. string. emailSignUpFlowLabel)
32- VStack { Divider ( ) }
33+ Divider ( )
3334 EmailAuthView ( )
3435 }
3536 VStack {
3637 authService. renderButtons ( )
3738 } . padding ( . horizontal)
3839 if authService. emailSignInEnabled {
39- VStack { Divider ( ) }
40+ Divider ( )
4041 HStack {
4142 Text ( authService
4243 . authenticationFlow == . login ? authService. string. dontHaveAnAccountYetLabel :
@@ -59,3 +60,10 @@ extension AuthPickerView: View {
5960 }
6061 }
6162}
63+
64+ #Preview {
65+ FirebaseOptions . dummyConfigurationForPreview ( )
66+ let authService = AuthService ( )
67+ . withEmailSignIn ( )
68+ return AuthPickerView ( ) . environment ( authService)
69+ }
You can’t perform that action at this time.
0 commit comments