update:
I resolved the issue. A lot of the functions and methods were renamed since you updated the tutorial.
But now I'm having more issues. Nodes arent being created in the database and I'm unsure as to why. here is a snippped of my code:
let filename = NSUUID().uuidString
Storage.storage().reference().child("profile_images").child(filename).putData(uploadData, metadata: nil, completion: { (metadata, error) in
if let err = error {
print("Failed to upload profile image:", err)
return
}
print("Successfully uploaded profile image:", metadata!)
guard let profileImageUrl = Auth.auth().currentUser?.photoURL?.absoluteString else { return }
print("Successfully uploaded profile image:", profileImageUrl)
guard let uid = Auth.auth().currentUser?.uid else { return }
let dictionaryValues = ["username": username, "profileImageUrl": profileImageUrl]
let values = [uid: dictionaryValues]
Database.database().reference().child("users").childByAutoId().setValue(values, withCompletionBlock: { (err, ref) in
if let err = err {
print("Failed to save user info into db:", err)
return
}
print("Successfully saved user info to db:",uid)
})