Skip to content

Latest commit

 

History

History
84 lines (55 loc) · 2.42 KB

README.md

File metadata and controls

84 lines (55 loc) · 2.42 KB

StepProgressBar

CI Status Version Version License Platform

Introduction

StepProgressBar is a very simple and customizable step-by-step progress bar.

stepprogressbar

Installation

CocoaPods

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

pod 'StepProgressBar'

Manually

Copy the StepProgressBar.swift to your Xcode project. That should do it.

Usage

StepProgressBar can be used via code or interface builder.

Interface Builder

  1. Drag UIView to your View Controller in the Storyboard.
  2. Select your view and in the Identity Inspector change the class to StepProgressBar.

⚠️ Importand - change the module to StepProgressBar too.

screen shot 2017-04-18 at 17 33 46

  1. Customization

screen shot 2017-04-18 at 17 16 52

  1. Import StepProgressBar in your view controller class.
import StepProgressBar
  1. Create an IBOutlet of the view in your view controller class.
@IBOutlet weak var progressView: StepProgressBar!

For Next step:

progressView.next()

For Previous step:

progressView.previous()

Code

Use the traditional init methods and properties.

Example

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

Requirements

  • iOS 9.0+
  • Xcode 10.0+
  • Swift 4.0+

Author

SerhiiMatvieiev, [email protected]

License

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