MakeSchool-Tutorials / Makestagram-Swift-V3

14 stars 7 forks source link

8. Managing User Accounts #69

Closed byzantinist closed 7 years ago

byzantinist commented 7 years ago

Redundancy

_The default fields within FIRUser:

The default fields include:_

You don't need to say this twice.


We read from the path we created and pass an event closure to handle the data (snapshot) is passed back from the database.

should be

We read from the path we created and pass an event closure to handle the data (snapshot) that is passed back from the database.


When we retrieve data from Firebase, we receive a DataSnapshot object that contains the data we retrieved. We can now access the data through it's value property:

should be

When we retrieve data from Firebase, we receive a DataSnapshot object that contains the data we retrieved. We can now access the data through its value property:


For the sample code in Retrieving Data, there is a "1" point but there is no "2" (even though a description is provided for point 2).


Here we guard by requiring the snapshot to be casted to a dictionary and checking the dictionary contains username key/value.

should be

Here we guard by requiring the snapshot to be casted to a dictionary and checking that the dictionary contains username key/value.