Skip to content

daront/LinearProgressBar

 
 

Repository files navigation

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

About

Simple progress bar for iOS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 48.7%
  • Ruby 47.7%
  • Objective-C 3.6%