Skip to content

Commit 4596f3b

Browse files
chore: tidy up auth screen
1 parent 9a73fee commit 4596f3b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/FirebaseAuthSwiftUI/Views/AuthenticationScreen.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ enum AuthenticationFlow {
88

99
public struct AuthenticationScreen {
1010
@Environment(AuthEnvironment.self) private var authEnvironment
11-
1211
@State private var flow: AuthenticationFlow = .login
12+
@State private var errorMessage = ""
13+
14+
public init() {}
1315

1416
private func switchFlow() {
1517
flow = flow == .login ? .signUp : .login
1618
errorMessage = ""
1719
}
18-
19-
@State private var errorMessage = ""
2020
}
2121

2222
extension AuthenticationScreen: View {

0 commit comments

Comments
 (0)