Simple progress bar for iOS
To run the example project, clone the repo, and hit run.
LinearProgressBar is a simple timer control for iOS. It makes timing in your applications simple.
LinearProgressBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LinearProgressBar"
Eliel Gordon, [email protected]
LinearProgressBar is available under the MIT license. See the LICENSE file for more info.
Adjust bar color based on progressValue by providing a closure to it. If the closure is not set, it will use the color set in the storyboard/IB.
linearProgressView.barColorForValue = { value in
switch value {
case 0..<20:
return UIColor.redColor()
case 20..<60:
return UIColor.orangeColor()
case 60..<80:
return UIColor.yellowColor()
default:
return UIColor.greenColor()
}
}