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

https://github.com/tbxark/tksectorprogressview

An simple animation sector progress view
https://github.com/tbxark/tksectorprogressview

Last synced: 5 months ago
JSON representation

An simple animation sector progress view

Awesome Lists containing this project

README

          

# TKSectorProgressView
> An simple animation sector progress view

[![Swift Version][swift-image]][swift-url]
[![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/TBXark/TKSectorProgressView/master/LICENSE)
[![CocoaPods](http://img.shields.io/cocoapods/v/TKSectorProgressView.svg?style=flat)](http://cocoapods.org/?q= TKSectorProgressView)
[![CocoaPods](http://img.shields.io/cocoapods/p/TKSectorProgressView.svg?style=flat)](http://cocoapods.org/?q= TKSectorProgressView)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Support](https://img.shields.io/badge/support-iOS%208%2B%20-blue.svg?style=flat)](https://www.apple.com/nl/ios/)

![](example.gif)

## Requirements

- iOS 8.0+
- Xcode 8.0
- Swift 3.0

## Installation

#### CocoaPods
You can use [CocoaPods](http://cocoapods.org/) to install `TKSectorProgressView` by adding it to your `Podfile`:

```ruby
platform :ios, '8.0'
use_frameworks!
pod 'TKSectorProgressView'
```

To get the full benefits import `TKSectorProgressView` wherever you import UIKit

``` swift
import UIKit
import TKSectorProgressView
```
#### Carthage
Create a `Cartfile` that lists the framework and run `carthage update`. Follow the [instructions](https://github.com/Carthage/Carthage#if-youre-building-for-ios) to add `$(SRCROOT)/Carthage/Build/iOS/TKSectorProgressView.framework` to an iOS project.

```
github "tbxark/TKSectorProgressView"
```
#### Manually
1. Download and drop ```TKSectorProgressView.swift``` in your project.
2. Congratulations!

## Usage example

```swift
import TKSectorProgressView

let progress = TKSectorProgressView(frame: CGRect(x: 0, y: 0, width: 200, height: 200))

progress.configure.borderColor = UIColor(red:0.862, green:0.272, blue:0.282, alpha:1)
progress.configure.fillColor = UIColor.whiteColor()
progress.configure.sectorColor = UIColor(red:1, green:0.493, blue:0.474, alpha:1)
progress.configure.borderWidth = 5
progress.configure.innerInset = 5
progress.animateDuration = 2
progress.progress = 0.2

progress.setProgress(1, animate: true)

```

## Release History

* 1.3.0
Support swift 3.0

* 1.0
Complete basic functions, add Cocoapod support

## Contribute

We would love for you to contribute to **TKSectorProgressView**, check the ``LICENSE`` file for more info.

## Meta

TBXark – [@tbxark](https://twitter.com/tbxark) – tbxark@outlook.com

Distributed under the MIT license. See ``LICENSE`` for more information.

[https://github.com/TBXark](https://github.com/TBXark)

[swift-image]:https://img.shields.io/badge/swift-3.0-orange.svg
[swift-url]: https://swift.org/
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
[codebeat-image]: https://codebeat.co/badges/c19b47ea-2f9d-45df-8458-b2d952fe9dad
[codebeat-url]: https://codebeat.co/projects/github-com-vsouza-awesomeios-com