Latest 1.5.0
Homepage https://github.com/yonat/StepProgressView
License MIT
Platforms ios 8.0, requires ARC
Dependencies MiniLayout
Authors

Step-by-step progress view with labels and shapes. A good replacement for UIActivityIndicatorView and UIProgressView.

Swift Version
Build Status
License
CocoaPods Compatible
Platform
PRs Welcome

StepProgressViewStepProgressView

Usage

let progressView   = StepProgressView(frame: view.bounds)
progressView.steps = ["First", "Second", "Third", "Last"]
progressView.details = [0: "The beginning", 3: "The end"] // appears below step title

progressView.currentStep = 0 // started first step
...
progressView.currentStep = 4 // all done

Changing Appearance

Shape of the step icons:

progressView.stepShape = .circle
progressView.firstStepShape = .rhombus
progressView.lastStepShape = .square
// also available: .triangle, .downTriangle

Text fonts and sizes:

progressView.textFont = myFont
progressView.detailFont = anotherFont

Line size spacing:

progressView.lineWidth = 2.5
progressView.verticalPadding = 8 // between steps (0 => default based on textFont)
progressView.horizontalPadding: 8 // between shape and text (0 => default based on textFont)

Colors:

progressView.tintColor = myGeneralTintColor

// alternatively:

progressView.currentStepColor = .red
progressView.pastStepColor = .gray
progressView.futureStepColor = .gray

progressView.currentStepFillColor = .yellow
progressView.pastStepFillColor = .gray
progressView.futureStepFillColor = .lightGray

progressView.currentTextColor = .blue
progressView.pastTextColor = .gray
progressView.futureTextColor = .lightGray
progressView.currentDetailColor = .cyan // nil => use currentStepColor

Installation

CocoaPods:

pod 'StepProgressView'

Legacy versions:

Swift version StepProgressView version
4.0 1.4.1
3 1.3.0
2.3 1.2.1

Meta

@yonatsharon

https://github.com/yonat/StepProgressView

Latest podspec

{
    "name": "StepProgressView",
    "version": "1.5.0",
    "summary": "Step-by-step progress view with labels and shapes. A good replacement for UIActivityIndicatorView and UIProgressView.",
    "description": "Usage:nn```swiftnlet progressView   = StepProgressView(frame: view.bounds)nprogressView.steps = ["First", "Second", "Third", "Last"]nnprogressView.currentStep = 0 // started first stepn...nprogressView.currentStep = 4 // all donen```",
    "homepage": "https://github.com/yonat/StepProgressView",
    "screenshots": [
        "https://raw.githubusercontent.com/yonat/StepProgressView/master/screenshots/blue.gif",
        "https://raw.githubusercontent.com/yonat/StepProgressView/master/screenshots/red.gif"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "Yonat Sharon": "[email protected]"
    },
    "social_media_url": "http://twitter.com/yonatsharon",
    "swift_version": "4.2",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/yonat/StepProgressView.git",
        "tag": "1.5.0"
    },
    "source_files": "Sources/*.swift",
    "dependencies": {
        "MiniLayout": []
    }
}

Pin It on Pinterest

Share This