Hello! I use Firebase in the program and have hard time understanding it and how it works.
I have a real time database and I get data from there, for now, just 2 objects.
I have a UICollectionView, which I will fill with there are cells with the data I got from Firebase, but can't really figure out how. I tried to look at a few solutions, but couldn't really understand it.
How to get the data from Firebase:
I'm trying to set numberOfItemsInSection to be the number of retrieved posts I received, but I think numberOfItemsInSection gets calls first (or call for Firebase takes longer time so I get 0 in there, instead of 2 for example.