Custom iOS view for rating input.
Swift Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example.playground
Examples
RatingSlider.xcodeproj
RatingSlider.xcworkspace
RatingSlider
.gitignore
LICENSE
README.md

README.md

Carthage compatible

RatingSlider

Main example

Custom view for rating input. Try it out in an example playground .

Features

🔍
Tap Tap example
Pan Pan example
nil Nil example

Usage

Just initialize RatingSlider and add to view hierarchy as any other UIView. Customize it:

let slider = RatingSlider()

slider.range = 0...10
slider.font = .systemFont(ofSize: 12)

slider.activeLabelsColor = .white
slider.activeTrackColor = .blue // setting `tint` does the same

slider.inactiveLabelsColor = .gray
slider.inactiveTrackColor = .lightGray // maps to `background` property

Installation

Using Carthage. Add the following line to your Cartfile:

github "Trafi/RatingSlider"