You can create it like any other UIView, either by code or through a storyboard or a nib
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
To run the example project, clone the repo, and run pod install
from the Example directory first.
AHProgressSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AHProgressSlider"
Andy Tong, ivsall2012@gmail.com
AHProgressSlider is available under the MIT license. See the LICENSE file for more info.