Skip to content

Commit 3f3b3c1

Browse files
docs: improve approach 3
1 parent f1ae8eb commit 3f3b3c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

FirebaseSwiftUI/first_draft.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,17 +529,15 @@ enum CustomAuthRoute {
529529
}
530530

531531
struct ContentView: View {
532-
@State private var authService: AuthService
532+
private let authService: AuthService
533533
@State private var navigationPath: [CustomAuthRoute] = []
534534
@State private var errorMessage: String?
535535

536536
init() {
537537
let configuration = AuthConfiguration()
538-
let service = AuthService(configuration: configuration)
538+
self.authService = AuthService(configuration: configuration)
539539
.withGoogleSignIn()
540540
.withPhoneSignIn()
541-
542-
_authService = State(initialValue: service)
543541
}
544542

545543
var body: some View {

0 commit comments

Comments
 (0)