Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for child in snapshots.reversed() {
- let keyValue = child.key
- let uid = keyValue.split(separator: ":")[0]
- let postIDDoubleVal = keyValue.split(separator: ":")[1]
- print(String(uid), " This is the uid!!!!!!")
- print(postIDDoubleVal, " This is tfdsafdsafdsafdsafads4!!!!")
- self.fetchUsersPost(uid: String(uid), postID: "post:(postIDDoubleVal)")
- }
- func fetchUsersPost(uid: String, postID: String) {
- print("fetchUsersPost Posts/(uid)/(postID)")
- fetchUsersPost Posts/QUocyvGehdeaOO9vVnklwOrWH7l1/post:580077760
- QUocyvGehdeaOO9vVnklwOrWH7l1 This is the uid!!!!!!
- 580077723 This is tfdsafdsafdsafdsafads4!!!!
- fetchUsersPost Posts/ QUocyvGehdeaOO9vVnklwOrWH7l1/post:580077723
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement