Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ref.getDocument { (document, err) in
- if let document = document, document.exists {
- let dataDescription = document.data().map(String.init(describing: )) ?? "nil"
- print ("Cached document data: (dataDescription)")
- profilename?.text = dataDescription["name"] as! String
- } else {
- print ("Document doesn't exist")
- }
- }
- profilename?.text = dataDescription["name"] as! String
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement