ZGRatingView is a layout that adds a "Rating & Reviews" bar to your app, similar to the ones seen on Apple App Store . It provides a beautiful visual summary of the number of raters along with the ratings they gave on a specific item.
| Style | Screenshot |
|---|---|
| Default bar color | ![]() |
| Custom Solid bar color | ![]() |
| Custom Gradient bar color | ![]() |
- Xcode 10.2+
- Swift 5+
- iOS 10+
CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate SwiftyMenu into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'ZGRatingView', '~> 0.1.9'Then from your Storyboard you can connect your Outlet and set rating values
ratingView.calculateStarsValues(totalRating: 5,
fiveStars: 2,
fourStars: 2,
threeStars: 0,
twoStars: 0,
oneStar:1)You can customize ZGRatingView from Code as following :
ratingView.setupRatingView(animationTime: 1.0,
isProgressStyleGradient: false,
progressTint: UIColor.Blue,
startProgressTint: nil,
endProgressTint: nil,
starsImage: nil,
barsSpacing: 2,
barWidth: 3)or from Storyboard as following :
Zyad Galal, dev_zyad_galal@yahoo.com
ZGRatingView is available under the MIT license. See the LICENSE file for more info.
You can find me on Twitter @ZyadMGalal.
You can find me on LinkedIn @zyad-galal.





