Skip to content

Commit d13aea6

Browse files
chore: rm unneeded VStack around Dividers
1 parent 149be6b commit d13aea6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/AuthPickerView.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import FirebaseCore
12
import 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+
}

0 commit comments

Comments
 (0)