/AHProgressSlider

A progress slider with a loaded progress embedded

Primary LanguageShellMIT LicenseMIT

AHProgressSlider

Demo

Usage

Creation

You can create it like any other UIView, either by code or through a storyboard or a nib

Configuration

slider.maximumTrackTintColor = UIColor.clear
slider.minimumTrackTintColor = UIColor.red
let thumbImg = UIImage(named: "player-thumb")
slider.setThumbImage(thumbImg, for: .normal)
/// Default is gray.
self.slider.loadedProgressTintColor = UIColor.green
slider.trackHeight = 2.0
slider.value = 0.3
slider.loadedProgress = 0.0

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

AHProgressSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AHProgressSlider"

Author

Andy Tong, ivsall2012@gmail.com

License

AHProgressSlider is available under the MIT license. See the LICENSE file for more info.