Initialize Match Animation
Tinder Firestore Swipe and Match
Once a match is made, we'll present a nice looking animation that displays information for both users. This screen has a series of animations that occur sequentially, thus requires a bit of trickery with completion handlers. Before we get into the animations themselves, let's first present our Match View with a blur effect view.

Comments (6)
mgb317
4 years ago
Hey Brian, In the UIView vs UIViewController explanation, you mentioned viewDidLoad, etc. What can you do in viewDidLoad that you can't (or shouldn't) do in init? Thanks, Matt
Brian Voong
4 years ago
mgb317
4 years ago
Thanks so much!! This makes perfect sense now.
frankcrest
4 years ago
Hi Brian, I got a problem with fetchingSwipes in HomeController. In fetchingSwipes, guard let data = snapshot?.data() as? [String: Int] else { return } self.swipes = data self.fetchUsersFromFirestore() the code above will not run self.fetchUserFromFirestore() if data is nil, that means if i register a new user, or a user has not swiped anything yet, it will not retrieve any user cards, and the loading hud will just keep showing..
李承諴
4 years ago
hi Brian I think we can use completion to capture the match result,and then show the match view depend on the result not just delay the second
thenonchalantguy
4 years ago
Hello Brian, How can i go to Message section of the app from button "Send Message" by delegate maybe ? Thanks in advance.
David Guarino
3 years ago
So when we use animations using your LBTA tools components won't work..... I asked because instead of using the code in func setupLayout in the video ...I used this: hstack(userImage, cardImageUser, spacing: 32, alignment: .center, distribution: .fillEqually).withMargins(.init(top: 0, left: 10, bottom: 0, right: 10)) issue was when I went to tap to dismiss the images or blur didn't disappear.
Brian Voong
3 years ago
David Guarino
3 years ago
Ok so I tried calling the variable stackView in the function.....using a stack, hstack, and even addsubview and still nothing....Keep in my I'm just trying to configure the UI in your course seeing how more efficient it is for us to use your LBTA components
Brian Voong
3 years ago
David Guarino
3 years ago
You're right....just experimenting to see how things could possibly look and work. Thanks. You're like the only instructor that still teaches UIKit and with the Preview Provider in the canvas is definitely a plus!
Dino32
3 years ago
Dear Brian hi, I've found a problem when, if the user doesn't have the "swipes" saved to firestore the "fetchUserFromFireStore()" doesn't working and loading lasts forever. So, how to be if the user is new and he/she didn't have a "swipes", how to omit "swipe" existence check in this case ?
HELP & SUPPORT