You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STRatingControl is a UI control that represents a star rating control. STRatingControl allows you to select a rating starting from 0 to any number of stars you want. You can use default star image or specify your custom images.
STRatingControl is the new wonderful rating control written in Swift!. Supports AutoLayout. It was also designed to cover user’s needs during customization. Created with delightful combination, STRatingControl improves your user experience.
How It Looks
Installation
There are two ways to add the STRatingControl library to your project. Add it as a regular library or install it through CocoaPods. To install it, simply add the following line to your Podfile:
use_frameworks! pod 'STRatingControl'
You may also quick try the example project with
pod try 'STRatingControl'
Properties
STRatingControl comes with a property set for it's customization as needed:
rating : Rating value, can be set or get current value
maxRating : Maximum rating value
filledStarImage : Image for filled rating stars
emptyStarImage : Image for empty rating stars
spacing : Space between rating stars
Usage and Customization
STRatingControl implements IB_DESIGNABLE and IBInspectable so you can fully customize it in Interface Builder.
Put on storyboard UIView, and set class STRatingControl.
STRatingControl is a UI control that represents a star rating control. STRatingControl allows you to select a rating starting from 0 to any number of stars you want. You can use default star image or specify your custom images.