Skip to content

Commit 5f7ee84

Browse files
chore: remove redundant onChange listener
1 parent b08c30e commit 5f7ee84

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

samples/swiftui/FirebaseSwiftUISample/FirebaseSwiftUISample/Examples/AuthPickerViewExample.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,5 @@ struct AuthPickerViewExample: View {
5555
}
5656
}
5757
}
58-
.onChange(of: authService.authenticationState) { _, newValue in
59-
if newValue != .authenticating {
60-
authService.isPresented = newValue == .unauthenticated
61-
}
62-
}
6358
}
6459
}

samples/swiftui/FirebaseSwiftUISample/FirebaseSwiftUISample/Examples/UIKitEmbeddingExample.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ private struct EmbeddedAuthView: View {
105105
AuthPickerView {
106106
authenticatedApp
107107
}
108-
.onChange(of: authService.authenticationState) { _, newValue in
109-
if newValue != .authenticating {
110-
authService.isPresented = newValue == .unauthenticated
111-
}
112-
}
113108
}
114109

115110
private var authenticatedApp: some View {

0 commit comments

Comments
 (0)