项目作者: SerhiiMatvieiev

项目描述 :
A simple and customizable step-by-step progress bar.
高级语言: Swift
项目地址: git://github.com/SerhiiMatvieiev/StepProgressBar.git
创建时间: 2017-04-17T19:27:45Z
项目社区:https://github.com/SerhiiMatvieiev/StepProgressBar

开源协议:MIT License

下载


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:

  1. 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.

    :warning: 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.
    1. import StepProgressBar
  2. Create an IBOutlet of the view in your view controller class.
    1. @IBOutlet weak var progressView: StepProgressBar!

For Next step:

  1. progressView.next()

For Previous step:

  1. 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, iamsergeymatveev@gmail.com

License

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