Created
March 8, 2019 17:09
-
-
Save shrawan2015/3f8661e51218a23e16fba1461bde59a0 to your computer and use it in GitHub Desktop.
completion of call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ref.child("users").child(user.uid).setValue(["username": username]) { | |
(error:Error?, ref:DatabaseReference) in | |
if let error = error { | |
print("Data could not be saved: \(error).") | |
} else { | |
print("Data saved successfully!") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment