capítulo 3.3: Uso de bases de datos en tiempo real de Firebase

PHOTO EMBED

Wed Mar 01 2023 10:40:53 GMT+0000 (Coordinated Universal Time)

Saved by @swiftui_spanish #firebase #swiftui #firestore #firestorage #firebaseauth

ref.child("users").child("userId").observe(.value) { (snapshot) in
  if let value = snapshot.value as? [String: Any] {
    let name = value["name"] as? String ?? ""
    let age = value["age"] as? Int ?? 0
    print("Name: \(name), Age: \(age)")
  }
}
content_copyCOPY