Swift how to add 5 star ratings for users to vote using Firebase

前端 未结 1 1231
误落风尘
误落风尘 2021-01-28 06:46

I\'m creating a restaurant rating app in Swift that allows its users to rate restaurants on a 5-star rating scale (just like Zomato and Yelp) . I will be using Firebase to store

相关标签:
1条回答
  • 2021-01-28 07:10

    I would use CoreData to save if user already vote.

    1. When the user rate one of the restaurant, just create a new record in core data with the restaurant's name or ID.

    2. Before every vote I should check if data is existing or not. If not, user can vote.

    0 讨论(0)
提交回复
热议问题