Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.73 KB

README.md

File metadata and controls

54 lines (38 loc) · 1.73 KB

LinearProgressBar

Simple progress bar for iOS

image

Version License Platform Build Status

Usage

To run the example project, clone the repo, and hit run.

About

LinearProgressBar is a simple timer control for iOS. It makes timing in your applications simple.

Installation

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

pod "LinearProgressBar"

Author

Eliel Gordon, [email protected]

License

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

New in This Fork

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()
	}
}