Skip to content

litoarias/JKSteppedProgressBar

Repository files navigation

JKSteppedProgressBar

CI Status Version codebeat badge Platform License

Example

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

Requirements

To use JKSteppedProgressBar Xcode 8.0 or later is required

Installation

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

pod 'JKSteppedProgressBar'

JKSteppedProgressBar can be added and configured directly from storyboard.

How to Add Stepped Progress Bar with Titles only

  • Add a blank UIView and set constraints
  • Set the Class & Module from identity inspector
  • Set the active & inactive color from Attributes inspector

setting custom title

  • Use the IBOutlet instance to set properties
  • Set your title array to titles property
  progressbar.titles = ["Step 1", "Step 2", "Step 3"]

setting custom title and images

  • Use the IBOutlet instance to set properties
  • Set your title array to titles property
  • Set your images array to images property
  progressbar.titles = ["Step 1", "Step 2", "Step 3"]
  progressbar.images = [
    UIImage(named: "DaisyDuck")!,
    UIImage(named: "MickeyMouse")!,
    UIImage(named: "MinnieMouse")!,
  ]

Demo

Demo Video

TODO

  • Add image for steps
  • Respect language direction for drawing

Author

Johnykutty, [email protected]

License

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

About

Stepped ProgressBar for iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 90.7%
  • Ruby 9.3%