Apologies
You must be signed in to watch this lesson.
Fetch and Show User Info
Tinder Firestore Swipe and Match
In this lesson, the objective is to fetch the currently logged in user's information from Firestore and present it inside of our UserSettingsController. Once we fetch our user, we'll have to provide a call to tableView.reloadData() to make sure the screen refreshes correctly.

Comments (9)
Yogin
5 years ago
Hi, could you help me with the new fb login SDK. Please find in the comment my problem. Link: https://www.letsbuildthatapp.com/course_video?id=412
Brian Voong
5 years ago
Yogin
5 years ago
Thanks for the reply mate but still getting this type of error and nothing pop up -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
mustii
5 years ago
if you are using pod 4.39, go back to 4.38 instead. then follow the steps that Brian mentions in his video.
Katlego
5 years ago
Hello Brian, my Auth.auth().currentUser?.uid returns nil, it seems to not know its current user, please help.
Katlego
5 years ago
Found the issue. Running the app on a new apple device means you need a new current user. Current user is automatically set with the latest user you registered with that device.
Cinquain
5 years ago
That video was fire!
0zgur
5 years ago
Thanks Brian
Bugger
5 years ago
You make this path of lesson look easy. Thanks Brian
richardbranson
5 years ago
Auth.auth().currentUser? return nil please help
romulusc
5 years ago
Hi Brian. At the end of this lesson, in simulator all good, fetching user data and image. But when running on Xs max seems to be a bug? the moment the home screen loads i get in xcode a blue warning "UI API called from background thread: -[UIApplication applicationState] must be used from main thread only" and on settings page no fetching anything. I couldn't find a solution yet. Thanks a lot
Brian Voong
5 years ago
romulusc
5 years ago
i've tried that a bit before writing after research but to be honest don't know where exactly this should go. i've tryed on the network calls in settings & home but didnt't work, still getting the warning. 2 lessons later, simulator still working fine saving user photos and after lesson 28 on iphone Xs although still with warning about background thread, the home screen can load the 3 pics of the loged on user, i have 4 pics in my design, all good, but than when going to setting nothing loads up, not even name, age and so on. Maybe a lesson on Dispatch would be realy great Brian. Also please advise on settings - table view only gives us 1 line textfields and at Bio realy i was hoping to get multiple lines. Am i right that if i want multiple lines i should replace the tableview with a collectionView? many thanks
Brian Voong
5 years ago
romulusc
5 years ago
thanks a million! will do
rakeem
4 years ago
The error in the simulator still persist. warning "UI API called from background thread: -[UIApplication applicationState] must be used from main thread only" The error is coming from open class LBTAListHeaderFooterController<T: LBTAListCell<U>, U, H: UICollectionReusableView, F: UICollectionReusableView>: UICollectionViewController { /// An array of U objects this list will render. When using items.append, you still need to manually call reloadData. open var items = [U]() { didSet { collectionView.reloadData() <---- HERE } }
yshelatkar
4 years ago
Hey Brian I am Kind of stuck on this lesson, I can't fetch users details and image, while my code is identical to yours, also the source code for this when I ran it wasn't able to fetch user details. Please help
David Guarino
4 years ago
Brian, everything has been going smoothly with your course and learning A LOT!... Question: Why use SDWebImage instead of Kingfisher to fetch images..personal preference or never used it. Like to know your thoughts
Brian Voong
4 years ago
David Guarino
4 years ago
Gotcha! I would've guessed using Kingfisher would be cleaner and easier to understand for us to get the url. Thanks1
HELP & SUPPORT