Created
October 9, 2015 09:10
-
-
Save jacks205/543de3feeeed1bf74486 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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