Skip to content

ZyadGalal/ZGRatingView

Repository files navigation



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

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, dev_zyad_galal@yahoo.com

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.

About

Simple star rating system bars, a view similar to the ones seen on App Store.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors