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
I would use CoreData to save if user already vote.
When the user rate one of the restaurant, just create a new record in core data with the restaurant's name or ID.
Before every vote I should check if data is existing or not. If not, user can vote.