How can I load user data from Firestore and update my view after authenticating asynchronously in Swift?
I’m looking for a way to get a user from my Firestore db AFTER authentication is completed and I get the UID for the user, but BEFORE my view loads on SwiftUI/Swift 5+. Or alternatively I can have a ProgressView in between.
How to add data in a Firestore Database (SwiftUI)
I’m having trouble in the setup steps for adding a document to my FireStore Database.
Firebase iOS SDK: getDocuments() call pausing the whole function and gets stuck
I have a function getStoredUser() where it gets the documents in the “users” collection where the id is equal to a userId variable and if that doesn’t exist, create one. Calling getDocuments() on the query stops the whole function’s execution (probably because it doesn’t return anything).