Latest 1.1.0
Homepage https://github.com/pixyzehn/MediumProgressView
License MIT
Platforms ios 8.0, requires ARC
Authors

Swift3.0
Build Status

Medium Progress View in Swift like a Medium Web application Progress View.

Inspired by KIProgressView. I made that a reference and customized a fine point.

Demo

MediumProgressView

Installation

CocoaPods

The easiest way to get started is to use CocoaPods. Add the following line to your Podfile:

platform :ios, '8.0'
use_frameworks!
# The following is a Library of Swift.
pod 'MediumProgressView'

Then, run the following command:

pod install

Carthage

Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate MediumProgressView into your Xcode project using Carthage, specify it in your Cartfile:

github "pixyzehn/MediumProgressView"

Run carthage update.

$ carthage update

Other

Add the MediumProgressView (including MediumProgressView.swift and MediumProgressViewManager.swift) folder into your project.

Description

You can set the certain property. For example, position and color, height, duration and so on. If you don’t set the these property, default value is used.

let progressViewManager = MediumProgressViewManager.sharedInstance
progressViewManager.position = .bottom    // Default is top.
progressViewManager.color = UIColor.red   // Default is UIColor(red:0.33, green:0.83, blue:0.44, alpha:1).
progressViewManager.height = 2.0          // Default is 4.0.
progressViewManager.isLeftToRight = false // Default is true.
progressViewManager.duration = 2.0        // Default is 1.2.
progressViewManager.repeatCount = 3       // Default is infinity.

The following method is show method.

progressViewManager.show()

The following method is hide method.

progressViewManager.hide()

See MediumProgressView-Sample project for more information.

Licence

MIT

Author

pixyzehn🐈

Latest podspec

{
    "name": "MediumProgressView",
    "version": "1.1.0",
    "summary": "A progress view based on Medium web app.",
    "homepage": "https://github.com/pixyzehn/MediumProgressView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Nagasawa Hiroki": "[email protected]"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/pixyzehn/MediumProgressView.git",
        "tag": "1.1.0"
    },
    "source_files": "MediumProgressView/*.swift"
}

Pin It on Pinterest

Share This