Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/PhilippeBoisney/LinearProgressBar

A simple Linear Progress Bar for IOS (Swift 3.0), inspired by Material Design
https://github.com/PhilippeBoisney/LinearProgressBar

Last synced: 3 months ago
JSON representation

A simple Linear Progress Bar for IOS (Swift 3.0), inspired by Material Design

Awesome Lists containing this project

README

        

# Linear Progress Bar (Material Design)

[![Platform](http://img.shields.io/badge/platform-ios-blue.svg?style=flat
)](https://developer.apple.com/iphone/index.action)
[![Language](http://img.shields.io/badge/language-swift-brightgreen.svg?style=flat
)](https://developer.apple.com/swift)
[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat
)](http://mit-license.org)

Linear Progress Bar (inspired by [Google Material Design](https://www.google.com/design/spec/components/progress-activity.html#progress-activity-types-of-indicators#)) for iOS written in Swift 4.0

Please feel free to make pull requests :)

![alt tag](https://github.com/PhilippeBoisney/LinearProgressBar/raw/master/demo.gif)

## INSTALLATION
####Manually
Simply add **LinearProgressBar.swift** file on your project.

####CocoaPods
You can use [Cocoapods](http://cocoapods.org/) to install `Linear Progress Bar` by adding it to your `Podfile`:
```ruby
platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
pod 'LinearProgressBarMaterial'
end
```
## USAGE
```swift
//Simply, Call Progress Bar
let linearBar: LinearProgressBar = LinearProgressBar()

//Start Animation
self.linearBar.startAnimation()

//Stop Animation
self.linearBar.stopAnimation()
```
**OPTIONS**
```swift
//Change background color
linearBar.backgroundColor = UIColor(red:0.68, green:0.81, blue:0.72, alpha:1.0)
linearBar.progressBarColor = UIColor(red:0.26, green:0.65, blue:0.45, alpha:1.0)

//Change height of progressBar
linearBar.heightForLinearBar = 5
```

## FEATURES

- [x] Multi-Device Full Support
- [x] Rotation Support
- [x] Material Design Effect
- [x] Swift 4 support

## Version
1.3

## Author

Philippe BOISNEY (phil.boisney(@)gmail.com)