Error while adding data in userID in Firebase Swift 3
问题 I am trying to add data by respective userIDs in Firebase by sign up the user, but it gives me error " unexpectedly found nil while unwrapping an optional value " now I don't know what the matter is. But when I use code without adding userID in ref respectively the data is added successfully. but when I add userID following ref then got error. SignUp let userID = FIRAuth.auth()?.currentUser?.uid ref.child("user_registration").child(userID!).setValue(["username": self.fullName.text, "email":