Skip to content

Commit 1d9d8dc

Browse files
fix: just use onChange to stop flashes of different screens
1 parent d9e7b79 commit 1d9d8dc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExample/App/ContentView.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ struct ContentView: View {
110110
}
111111
.navigationTitle("Firebase UI Demo")
112112
}
113-
.onAppear {
114-
authService.isPresented = authService.authenticationState == .unauthenticated
115-
}
116113
.onChange(of: authService.authenticationState) { _, newValue in
117114
debugPrint("authService.authenticationState - \(newValue)")
118115
if newValue != .authenticating {

0 commit comments

Comments
 (0)