ZGRatingView
ZGRatingView copied to clipboard
Simple star rating system bars, a view similar to the ones seen on App Store.
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.
- Screenshots
- Requirements
-
Installation
- Cocoapods
-
Usage
- Storyboard
- Customize UI
- Author
- Credits
- License
Screenshots
Style | Screenshot |
---|---|
Default bar color | ![]() |
Custom Solid bar color | ![]() |
Custom Gradient bar color | ![]() |
Requirements
- Xcode 10.2+
- Swift 5+
- iOS 10+
Installation
CocoaPods
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'
Usage
Storyboard

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)
CustomizeUI
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 :

Author
Zyad Galal, [email protected]
License
ZGRatingView is available under the MIT license. See the LICENSE
file for more info.
Credits
You can find me on Twitter @ZyadMGalal. You can find me on LinkedIn @zyad-galal.