https://github.com/ykyouhei/KYNavigationProgress
Simple extension of UINavigationController to display progress on the UINavigationBar.
https://github.com/ykyouhei/KYNavigationProgress
Last synced: 8 months ago
JSON representation
Simple extension of UINavigationController to display progress on the UINavigationBar.
- Host: GitHub
- URL: https://github.com/ykyouhei/KYNavigationProgress
- Owner: ykyouhei
- License: mit
- Created: 2015-12-29T14:08:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-17T20:40:19.000Z (about 8 years ago)
- Last Synced: 2024-11-05T01:06:23.782Z (over 1 year ago)
- Language: Swift
- Homepage:
- Size: 31.3 KB
- Stars: 245
- Watchers: 9
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - KYNavigationProgress - Simple extension of UINavigationController to display progress on the UINavigationBar. (UI / Activity Indicator)
- awesome-ios-star - KYNavigationProgress - Simple extension of UINavigationController to display progress on the UINavigationBar. (UI / Activity Indicator)
- fucking-awesome-ios - KYNavigationProgress - Simple extension of UINavigationController to display progress on the UINavigationBar. (UI / Activity Indicator)
README
# KYNavigationProgress
[](https://github.com/Carthage/Carthage)
[](http://cocoadocs.org/docsets/KYNavigationProgress/)
[](http://cocoadocs.org/docsets/KYNavigationProgress/)
[](https://github.com/ykyohei/KYNavigationProgress/blob/master/LICENSE)

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

## Installation
### CocoaPods
`KYNavigationProgress` is available on CocoaPods.
Add the following to your `Podfile`:
```ruby
use_frameworks!
pod 'KYNavigationProgress'
```
### Carthage
`KYNavigationProgress` is available through [Carthage](https://github.com/Carthage/Carthage). To install it, simply add the following line to your Cartfile:
```ruby
github "ykyouhei/KYNavigationProgress"
```
## Usage
### Progress
```Swift
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
```Swift
// 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](LICENSE).