Latest | 0.1.1 |
---|---|
Homepage | https://github.com/Sanjay1git/MultiColorCircleView |
License | MIT |
Platforms | ios 8.0 |
Authors |
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
ARC
iOS8
Installation
MultiColorCircleView is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "MultiColorCircleView"
Usage
import MultiColorCircleView
Add an outlet @IBOutlet weak var multiColorCircleView: MultiColorCircleView!
Change the colors and percentages. The colors count must be equal to the percentages count. First Percentage value corresponds to the first color value. The colors will be filled based on the corresponding percentage value.
multiColorCircleView.colors = [UIColor.grayColor(), UIColor.orangeColor(), UIColor.magentaColor(), UIColor.yellowColor()]
multiColorCircleView.percentages = [0.25, 0.5, 0.125, 0.125]
Author
Sanjay, [email protected]
License
MultiColorCircleView is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "MultiColorCircleView", "version": "0.1.1", "summary": "A subclass of UIView the shows multi colored circle based on percentages.", "description": "Colors the circle with different colors based on percentages. Helps to provide statistical data in the form of a Pie Cicle chart.", "homepage": "https://github.com/Sanjay1git/MultiColorCircleView", "license": "MIT", "authors": { "Sanjay": "[email protected]" }, "source": { "git": "https://github.com/Sanjay1git/MultiColorCircleView.git", "tag": "0.1.1" }, "platforms": { "ios": "8.0" }, "source_files": "MultiColorCircleView/Classes/**/*" }
Mon, 16 May 2016 09:20:05 +0000