Closed wassupnari closed 7 years ago
Perhaps I should have mentioned this in your previous PR for friends view controller. If we specify private game (not public) is the logic to check that we have added the total number of people implemented?
I think right now it might be possible to also over select the max number of players
I was curious, are you planning to make the firebase db integration in a separate pr once you've gone through all the game setup view controllers? I don't see any code to update the DB yet
Hi Savio,
For your question about max number of users, yes! I'm sending max number of users to SelectFriendsViewController, but I don't has guard to prevent selecting more than max number. I'll add that logic.
Also, for the Firebase api call - I was planning on updating DB at the end of creating game process, and I just realized that this page is the final. Should I include that in this PR then?
Okay submit separate Firebase API Call PR!
Thanks! Will do that tonight!
I made other changes that you guys addressed. :)
Added a few more things I noticed... Overall looks good.
Hi @zhiachong
I just made changes for removing magic numbers. For abstraction though, we need to subclass UIPickerViewDelegate
and inject the dependencies for tag information, but I honestly don't know how to do that in Swift, and it think that's overkill for this project. Also, current implementation is very common pattern, and I don't think it's creating any boilerplate code.
Let me know what you think!
In this PR, I'm getting Trivia Categories from JService, and populate them in pickerview.
Let me know if you guys notice anything!