Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. for child in snapshots.reversed() {
  2.  
  3. let keyValue = child.key
  4. let uid = keyValue.split(separator: ":")[0]
  5. let postIDDoubleVal = keyValue.split(separator: ":")[1]
  6. print(String(uid), " This is the uid!!!!!!")
  7. print(postIDDoubleVal, " This is tfdsafdsafdsafdsafads4!!!!")
  8.  
  9. self.fetchUsersPost(uid: String(uid), postID: "post:(postIDDoubleVal)")
  10. }
  11.  
  12. func fetchUsersPost(uid: String, postID: String) {
  13. print("fetchUsersPost Posts/(uid)/(postID)")
  14.  
  15. fetchUsersPost Posts/QUocyvGehdeaOO9vVnklwOrWH7l1/post:580077760
  16. QUocyvGehdeaOO9vVnklwOrWH7l1 This is the uid!!!!!!
  17. 580077723 This is tfdsafdsafdsafdsafads4!!!!
  18. fetchUsersPost Posts/ QUocyvGehdeaOO9vVnklwOrWH7l1/post:580077723
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement