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
1
2
import SwiftUI
2
3
3
4
@MainActor
@@ -29,14 +30,14 @@ extension AuthPickerView: View {
29
30
if authService. emailSignInEnabled {
30
31
Text ( authService. authenticationFlow == . login ? authService. string
31
32
. emailLoginFlowLabel : authService. string. emailSignUpFlowLabel)
32
- VStack { Divider ( ) }
33
+ Divider ( )
33
34
EmailAuthView ( )
34
35
}
35
36
VStack {
36
37
authService. renderButtons ( )
37
38
} . padding ( . horizontal)
38
39
if authService. emailSignInEnabled {
39
- VStack { Divider ( ) }
40
+ Divider ( )
40
41
HStack {
41
42
Text ( authService
42
43
. authenticationFlow == . login ? authService. string. dontHaveAnAccountYetLabel :
@@ -59,3 +60,10 @@ extension AuthPickerView: View {
59
60
}
60
61
}
61
62
}
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