Skip to content

Instantly share code, notes, and snippets.

@jacks205
Created October 9, 2015 09:10
Show Gist options
  • Save jacks205/543de3feeeed1bf74486 to your computer and use it in GitHub Desktop.
Save jacks205/543de3feeeed1bf74486 to your computer and use it in GitHub Desktop.
//
// ViewController.swift
// CirclePieViewExample
//
// Created by Mark Jackson on 10/8/15.
// Copyright © 2015 Mark Jackson. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var circleView: CirclePieView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
circleView.setSegmentValues(
[0, 150, 300],
totals: [300, 300, 300],
colors: [UIColor.greenColor(), UIColor.yellowColor(), UIColor.redColor()])
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment