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
- Host: GitHub
- URL: https://github.com/tbxark/tksectorprogressview
- Owner: TBXark
- License: mit
- Created: 2016-08-04T12:07:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-07T04:33:37.000Z (almost 9 years ago)
- Last Synced: 2024-11-09T18:45:25.248Z (11 months ago)
- Language: Swift
- Homepage: http://tbxark.site
- Size: 124 KB
- Stars: 10
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TKSectorProgressView
> An simple animation sector progress view[![Swift Version][swift-image]][swift-url]
[](https://raw.githubusercontent.com/TBXark/TKSectorProgressView/master/LICENSE)
[](http://cocoapods.org/?q= TKSectorProgressView)
[](http://cocoapods.org/?q= TKSectorProgressView)
[](https://github.com/Carthage/Carthage)
[](https://www.apple.com/nl/ios/)
## 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 TKSectorProgressViewlet 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.2progress.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