We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ae8eb commit 3f3b3c1Copy full SHA for 3f3b3c1
FirebaseSwiftUI/first_draft.md
@@ -529,17 +529,15 @@ enum CustomAuthRoute {
529
}
530
531
struct ContentView: View {
532
- @State private var authService: AuthService
+ private let authService: AuthService
533
@State private var navigationPath: [CustomAuthRoute] = []
534
@State private var errorMessage: String?
535
536
init() {
537
let configuration = AuthConfiguration()
538
- let service = AuthService(configuration: configuration)
+ self.authService = AuthService(configuration: configuration)
539
.withGoogleSignIn()
540
.withPhoneSignIn()
541
-
542
- _authService = State(initialValue: service)
543
544
545
var body: some View {
0 commit comments