Simple extension of UINavigationController to display progress on the UINavigationBar.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
KYNavigationProgress.xcodeproj Update Project Files. Sep 25, 2017
KYNavigationProgress Added Swift 4 support Sep 23, 2017
Sample fix sample code. Jan 2, 2017
.gitignore Initial commit Dec 29, 2015
.swift-version Changed swift version in swift-version file Sep 23, 2017
KYNavigationProgress.podspec Added Swift 4 support Sep 23, 2017
LICENSE Initial commit Dec 29, 2015
README.md Update Project Files. Sep 25, 2017

README.md

KYNavigationProgress

Carthage compatible Pod Version Pod Platform Pod License Swift version

KYNavigationProgress is simple extension of UINavigationController to display progress on the UINavigationBar.

image.png

Installation

CocoaPods

KYNavigationProgress is available on CocoaPods. Add the following to your Podfile:

use_frameworks!
pod 'KYNavigationProgress'

Carthage

KYNavigationProgress is available through Carthage. To install it, simply add the following line to your Cartfile:

github "ykyouhei/KYNavigationProgress"

Usage

Progress

import KYNavigationProgress

// get and set progress.
self.navigationController?.progress = 0.5

// set progress with animation.
self.navigationController?.setProgress(0.1, animated: true)

// finish progress.
self.navigationController?.finishProgress()

// cancel progress.
self.navigationController?.cancelProgress()

Custom

// default is UIColor(red: 0.0, green: 122/255, blue: 1.0, alpha: 1.0)
self.navigationController?.progressTintColor

// default is UIColor.clearColor()
self.navigationController?.trackTintColor

// default is 2.0
self.navigationController?.progressHeight

License

This code is distributed under the terms and conditions of the MIT license.