- Copy .swift files under
start-rating-view
group into your project. - Add
View
control into your storyboard. Set its class toTegStarRatingView
. - Add an outlet for this view in your view controller.
- Use
show
method to display rating:
ratingView.show(rating: 4, text: "(132)")
Customization can be made by changing settings
properties. For example:
ratingView.settings.starColorFilled = UIColor.blackColor()
ratingView.settings.starFillMode = TegStarFillMode.Precise