Login required for access
In order to watch this lesson, you'll need to login to the website.
Installing Firestore and Saving User Data Collection
SwiftUI Firebase Real Time Chat
private func storeUserInformation(imageProfileUrl: URL) {    guard let uid = FirebaseManager.shared.auth.currentUser?.uid else { return }    let userData = ["email": self.email, "uid": uid, "profileImageUrl": imageProfileUrl.absoluteString]    FirebaseManager.shared.firestore.collection("users")        .document(uid).setData(userData) { err in            if let err = err {                print(err)                self.loginStatusMessage = "\(err)"                return            }                        print("Success")        }}

Comments (0)