MultiColorCircleView 0.1.1

MultiColorCircleView 0.1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2016
SPMSupports SPM

Maintained by Sanjay.



  • By
  • Sanjay

MultiColorCircleView

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.