If you want to put rating in your application and you bored from using stars, this repo will help you.
- Swift 4.2
- Xcode 10
We used to use stars in rating anythings ,so for break the chain i tried to make a simple reusable application.
- Go to EmojiRate folder and add the files to your project.
- Impelment RateDelegate protocol.
- Define valriable from EmojiRateView
var emRate:EmojiRateView!
- In viewDidLoad() add this code :
emRate = self.addRateView()
- For showing the EmojiRateView use:
emRate.showView()
- Finally you get the value of rating from impelmented function:
func Rate(value: Int) {
// here write your code
print(value)
}