Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ref.getDocument { (document, err) in
  2. if let document = document, document.exists {
  3. let dataDescription = document.data().map(String.init(describing: )) ?? "nil"
  4. print ("Cached document data: (dataDescription)")
  5. profilename?.text = dataDescription["name"] as! String
  6. } else {
  7. print ("Document doesn't exist")
  8. }
  9. }
  10.  
  11. profilename?.text = dataDescription["name"] as! String
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement