├── view.png
├── CirclePieViewExample
├── MyPlayground.playground
│ ├── Contents.swift
│ ├── timeline.xctimeline
│ ├── playground.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── contents.xcplayground
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── ViewController.swift
├── CirclePieIndicatorView.swift
├── AppDelegate.swift
├── CirclePieIndicatorView.xib
└── CirclePieView.swift
├── CirclePieViewExample.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
├── xcuserdata
│ └── markjackson.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── CirclePieViewExample.xcscheme
└── project.pbxproj
├── README.md
└── .gitignore
/view.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jacks205/CirclePieViewExample/HEAD/view.png
--------------------------------------------------------------------------------
/CirclePieViewExample/MyPlayground.playground/Contents.swift:
--------------------------------------------------------------------------------
1 | //: Playground - noun: a place where people can play
2 |
3 | import UIKit
4 |
5 | let x = Float(300.0 / 600.0) * 360
--------------------------------------------------------------------------------
/CirclePieViewExample/MyPlayground.playground/timeline.xctimeline:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CirclePieViewExample/MyPlayground.playground/playground.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CirclePieViewExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CirclePieViewExample/MyPlayground.playground/contents.xcplayground:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CirclePieViewExample
2 | Custom UIView for showing data in a pie chart form
3 |
4 | Tutorial: [Lets create a custom UIView Circle Indicator](https://medium.com/@jacks205/lets-create-a-custom-uiview-circle-indicator-in-swift-ec5a2b993dec)
5 |
6 | Tutorial for showing how to make a view similar to the Spots custom view
7 |
8 |
--------------------------------------------------------------------------------
/CirclePieViewExample.xcodeproj/xcuserdata/markjackson.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | CirclePieViewExample.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | EA8B24B61BC744A200CCD792
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | build/
4 | *.pbxuser
5 | !default.pbxuser
6 | *.mode1v3
7 | !default.mode1v3
8 | *.mode2v3
9 | !default.mode2v3
10 | *.perspectivev3
11 | !default.perspectivev3
12 | xcuserdata
13 | *.xccheckout
14 | *.moved-aside
15 | DerivedData
16 | *.hmap
17 | *.ipa
18 | *.xcuserstate
19 | # CocoaPods
20 | #
21 | # We recommend against adding the Pods directory to your .gitignore. However
22 | # you should judge for yourself, the pros and cons are mentioned at:
23 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
24 | #
25 | # Pods/
26 |
27 | # Carthage
28 | #
29 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
30 | # Carthage/Checkouts
31 |
32 | Carthage/Build
33 |
--------------------------------------------------------------------------------
/CirclePieViewExample/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/CirclePieViewExample/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/CirclePieViewExample/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/CirclePieViewExample/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // CirclePieViewExample
4 | //
5 | // Created by Mark Jackson on 10/8/15.
6 | // Copyright © 2015 Mark Jackson. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | extension Double {
12 | func format(f: String) -> String {
13 | return NSString(format: "%\(f)f", self) as String
14 | }
15 | }
16 |
17 | class ViewController: UIViewController {
18 |
19 | @IBOutlet weak var circlePieIndicatorView: CirclePieIndicatorView!
20 |
21 | override func viewDidLoad() {
22 | super.viewDidLoad()
23 | // Do any additional setup after loading the view, typically from a nib.
24 |
25 | let values = [0, 150, 300, 0, 150, 300, 0, 150, 300, 0, 150, 300]
26 | var totalValues = 0
27 | for val in values {
28 | totalValues += val
29 | }
30 | let totals = [200, 500, 350, 220, 600, 500, 200, 500, 350, 220, 600, 500]
31 | var totalTotals = 0
32 | for total in totals {
33 | totalTotals += total
34 | }
35 | let percent = (Double(totalValues) / Double(totalTotals)) * 100
36 | circlePieIndicatorView.percentageLabel.text = percent.format(".0") + "%"
37 | circlePieIndicatorView.circlePieView.setSegmentValues(
38 | values,
39 | totals: totals,
40 | colors: [UIColor.greenColor(), UIColor.yellowColor(), UIColor.redColor(), UIColor.greenColor(), UIColor.yellowColor(), UIColor.redColor(), UIColor.greenColor(), UIColor.yellowColor(), UIColor.redColor(), UIColor.greenColor(), UIColor.yellowColor(), UIColor.redColor()])
41 |
42 | }
43 |
44 | override func didReceiveMemoryWarning() {
45 | super.didReceiveMemoryWarning()
46 | // Dispose of any resources that can be recreated.
47 | }
48 |
49 |
50 | }
51 |
52 |
--------------------------------------------------------------------------------
/CirclePieViewExample/CirclePieIndicatorView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // CirclePieIndicatorView.swift
3 | // CirclePieViewExample
4 | //
5 | // Created by Mark Jackson on 10/9/15.
6 | // Copyright © 2015 Mark Jackson. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class CirclePieIndicatorView: UIView {
12 |
13 | // Our custom view from the XIB file
14 | var view: UIView!
15 |
16 | @IBOutlet var circlePieView: CirclePieView!
17 | @IBOutlet weak var percentageLabel: UILabel!
18 |
19 | override init(frame: CGRect) {
20 | // 1. setup any properties here
21 |
22 | // 2. call super.init(frame:)
23 | super.init(frame: frame)
24 |
25 | // 3. Setup view from .xib file
26 | xibSetup()
27 | }
28 |
29 | required init?(coder aDecoder: NSCoder) {
30 | // 1. setup any properties here
31 |
32 | // 2. call super.init(coder:)
33 | super.init(coder: aDecoder)
34 |
35 | // 3. Setup view from .xib file
36 | xibSetup()
37 | }
38 |
39 | func xibSetup() {
40 | view = loadViewFromNib()
41 |
42 | // use bounds not frame or it'll be offset
43 | view.frame = bounds
44 |
45 | // Make the view stretch with containing view
46 | view.autoresizingMask = [.FlexibleHeight, .FlexibleWidth]
47 |
48 | // Adding custom subview on top of our view (over any custom drawing > see note below)
49 | addSubview(view)
50 | }
51 |
52 | func loadViewFromNib() -> UIView {
53 |
54 | let bundle = NSBundle(forClass: self.dynamicType)
55 | let nib = UINib(nibName: "CirclePieIndicatorView", bundle: bundle)
56 | let view = nib.instantiateWithOwner(self, options: nil)[0] as! UIView
57 |
58 | return view
59 | }
60 |
61 | /*
62 | // Only override drawRect: if you perform custom drawing.
63 | // An empty implementation adversely affects performance during animation.
64 | override func drawRect(rect: CGRect) {
65 | // Drawing code
66 |
67 |
68 | }
69 | */
70 |
71 | }
--------------------------------------------------------------------------------
/CirclePieViewExample/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // CirclePieViewExample
4 | //
5 | // Created by Mark Jackson on 10/8/15.
6 | // Copyright © 2015 Mark Jackson. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(application: UIApplication) {
33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/CirclePieViewExample/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/CirclePieViewExample.xcodeproj/xcuserdata/markjackson.xcuserdatad/xcschemes/CirclePieViewExample.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/CirclePieViewExample/CirclePieIndicatorView.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
28 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/CirclePieViewExample/CirclePieView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // CirclePieView.swift
3 | // CirclePieViewExample
4 | //
5 | // Created by Mark Jackson on 10/8/15.
6 | // Copyright © 2015 Mark Jackson. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @IBDesignable class CirclePieView: UIView {
12 |
13 | //Values for each segment
14 | private var segmentValues : [Float]
15 | //Total for each segment
16 | private var segmentTotals : [Float]
17 | //Color for each segment
18 | private var segmentColors : [UIColor]
19 | //Sum of each segmentTotals element
20 | private var segmentTotalAll : Float
21 |
22 | //When creating the view in code
23 | override init(frame: CGRect) {
24 | segmentValues = []
25 | segmentTotals = []
26 | segmentColors = []
27 | segmentTotalAll = 0
28 | super.init(frame: frame)
29 | }
30 |
31 | //When creating the view in IB
32 | required init?(coder aDecoder: NSCoder) {
33 | segmentValues = []
34 | segmentTotals = []
35 | segmentColors = []
36 | segmentTotalAll = 0
37 | super.init(coder: aDecoder)
38 | }
39 |
40 | //Sets all the segment members in order to draw each segment
41 | func setSegmentValues(values : [Int], totals : [Int], colors : [UIColor]){
42 | //Must be equal lengths
43 | if values.count != totals.count && totals.count != colors.count{
44 | return;
45 | }
46 | //Set the colors
47 | segmentColors = colors
48 | segmentTotalAll = 0
49 | for total in totals {
50 | segmentTotalAll += Float(total)
51 | segmentTotals.append(Float(total))
52 | }
53 | for val in values {
54 | segmentValues.append(Float(val))
55 | }
56 | }
57 |
58 |
59 | // Only override drawRect: if you perform custom drawing.
60 | // An empty implementation adversely affects performance during animation.
61 | override func drawRect(rect: CGRect) {
62 | // Drawing code
63 | //Base circle
64 | UIColor.blackColor().setFill()
65 | let outerPath = UIBezierPath(ovalInRect: rect)
66 | outerPath.fill()
67 |
68 |
69 | //Semicircles
70 | //self.frame isn't defined yet, so we can't use self.center
71 | let viewCenter = CGPointMake(rect.width / 2, rect.height / 2);
72 | var i = 0
73 | var lastAngle :Float = 0.0
74 | let baseCircleRadius = rect.width / 2
75 | let centerCircleRadius = rect.width / 2 * 0.55
76 |
77 | //value : current number
78 | for value in segmentValues {
79 | //total : total number
80 | let total = segmentTotals[safe: i]!
81 |
82 | //offsetTotal : difference between Base Circle and Center Circle
83 | let offset = baseCircleRadius - centerCircleRadius
84 |
85 | //radius : radius of segment
86 | let radius = CGFloat(value / total) * offset + centerCircleRadius
87 | //startAngle : start angle of this segment
88 | let startAngle = lastAngle
89 | //endAngle : end angle of this segment
90 | let endAngle = lastAngle + total / segmentTotalAll * 360.0
91 | //color : color of the segment
92 | let color = segmentColors[safe: i]!
93 | color.setFill()
94 |
95 | let midPath = UIBezierPath()
96 | midPath.moveToPoint(viewCenter)
97 |
98 | midPath.addArcWithCenter(viewCenter, radius: CGFloat(radius), startAngle: startAngle.degreesToRadians, endAngle: endAngle.degreesToRadians, clockwise: true)
99 |
100 | midPath.closePath()
101 | midPath.fill()
102 |
103 | lastAngle = endAngle
104 | ++i
105 | }
106 |
107 | //Center circle
108 | UIColor.whiteColor().setFill()
109 | let centerPath = UIBezierPath(ovalInRect:
110 | CGRectInset(rect,
111 | centerCircleRadius,
112 | centerCircleRadius))
113 | centerPath.fill()
114 |
115 | UIColor.grayColor().setStroke()
116 | let lineLength = centerCircleRadius * 0.5
117 | let strokePath = UIBezierPath()
118 | strokePath.lineWidth = 2
119 | strokePath.moveToPoint(CGPointMake(viewCenter.x - lineLength / 2, viewCenter.y))
120 | strokePath.addLineToPoint(CGPointMake(viewCenter.x + lineLength / 2, viewCenter.y))
121 | strokePath.stroke()
122 | }
123 | }
124 |
125 | extension Array {
126 | subscript (safe index: Int) -> Element? {
127 | return indices ~= index ? self[index] : nil
128 | }
129 | }
130 |
131 | extension Float {
132 | var degreesToRadians : CGFloat {
133 | return CGFloat(self) * CGFloat(M_PI) / 180.0
134 | }
135 | }
136 |
--------------------------------------------------------------------------------
/CirclePieViewExample.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | EA8B24BB1BC744A200CCD792 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA8B24BA1BC744A200CCD792 /* AppDelegate.swift */; };
11 | EA8B24BD1BC744A200CCD792 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA8B24BC1BC744A200CCD792 /* ViewController.swift */; };
12 | EA8B24C01BC744A200CCD792 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EA8B24BE1BC744A200CCD792 /* Main.storyboard */; };
13 | EA8B24C21BC744A200CCD792 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EA8B24C11BC744A200CCD792 /* Assets.xcassets */; };
14 | EA8B24C51BC744A200CCD792 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EA8B24C31BC744A200CCD792 /* LaunchScreen.storyboard */; };
15 | EA8B24CD1BC744CC00CCD792 /* CirclePieView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA8B24CC1BC744CC00CCD792 /* CirclePieView.swift */; settings = {ASSET_TAGS = (); }; };
16 | EA8B24CF1BC7C4F400CCD792 /* CirclePieIndicatorView.xib in Resources */ = {isa = PBXBuildFile; fileRef = EA8B24CE1BC7C4F400CCD792 /* CirclePieIndicatorView.xib */; settings = {ASSET_TAGS = (); }; };
17 | EA8B24D11BC7C60000CCD792 /* CirclePieIndicatorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA8B24D01BC7C60000CCD792 /* CirclePieIndicatorView.swift */; settings = {ASSET_TAGS = (); }; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXFileReference section */
21 | EA8B24B71BC744A200CCD792 /* CirclePieViewExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CirclePieViewExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
22 | EA8B24BA1BC744A200CCD792 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
23 | EA8B24BC1BC744A200CCD792 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
24 | EA8B24BF1BC744A200CCD792 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
25 | EA8B24C11BC744A200CCD792 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
26 | EA8B24C41BC744A200CCD792 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
27 | EA8B24C61BC744A200CCD792 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
28 | EA8B24CC1BC744CC00CCD792 /* CirclePieView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CirclePieView.swift; sourceTree = ""; };
29 | EA8B24CE1BC7C4F400CCD792 /* CirclePieIndicatorView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CirclePieIndicatorView.xib; sourceTree = ""; };
30 | EA8B24D01BC7C60000CCD792 /* CirclePieIndicatorView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CirclePieIndicatorView.swift; sourceTree = ""; };
31 | /* End PBXFileReference section */
32 |
33 | /* Begin PBXFrameworksBuildPhase section */
34 | EA8B24B41BC744A200CCD792 /* Frameworks */ = {
35 | isa = PBXFrameworksBuildPhase;
36 | buildActionMask = 2147483647;
37 | files = (
38 | );
39 | runOnlyForDeploymentPostprocessing = 0;
40 | };
41 | /* End PBXFrameworksBuildPhase section */
42 |
43 | /* Begin PBXGroup section */
44 | EA8B24AE1BC744A200CCD792 = {
45 | isa = PBXGroup;
46 | children = (
47 | EA8B24B91BC744A200CCD792 /* CirclePieViewExample */,
48 | EA8B24B81BC744A200CCD792 /* Products */,
49 | );
50 | sourceTree = "";
51 | };
52 | EA8B24B81BC744A200CCD792 /* Products */ = {
53 | isa = PBXGroup;
54 | children = (
55 | EA8B24B71BC744A200CCD792 /* CirclePieViewExample.app */,
56 | );
57 | name = Products;
58 | sourceTree = "";
59 | };
60 | EA8B24B91BC744A200CCD792 /* CirclePieViewExample */ = {
61 | isa = PBXGroup;
62 | children = (
63 | EA8B24BA1BC744A200CCD792 /* AppDelegate.swift */,
64 | EA8B24BC1BC744A200CCD792 /* ViewController.swift */,
65 | EA8B24BE1BC744A200CCD792 /* Main.storyboard */,
66 | EA8B24C11BC744A200CCD792 /* Assets.xcassets */,
67 | EA8B24C31BC744A200CCD792 /* LaunchScreen.storyboard */,
68 | EA8B24C61BC744A200CCD792 /* Info.plist */,
69 | EA8B24CC1BC744CC00CCD792 /* CirclePieView.swift */,
70 | EA8B24CE1BC7C4F400CCD792 /* CirclePieIndicatorView.xib */,
71 | EA8B24D01BC7C60000CCD792 /* CirclePieIndicatorView.swift */,
72 | );
73 | path = CirclePieViewExample;
74 | sourceTree = "";
75 | };
76 | /* End PBXGroup section */
77 |
78 | /* Begin PBXNativeTarget section */
79 | EA8B24B61BC744A200CCD792 /* CirclePieViewExample */ = {
80 | isa = PBXNativeTarget;
81 | buildConfigurationList = EA8B24C91BC744A200CCD792 /* Build configuration list for PBXNativeTarget "CirclePieViewExample" */;
82 | buildPhases = (
83 | EA8B24B31BC744A200CCD792 /* Sources */,
84 | EA8B24B41BC744A200CCD792 /* Frameworks */,
85 | EA8B24B51BC744A200CCD792 /* Resources */,
86 | );
87 | buildRules = (
88 | );
89 | dependencies = (
90 | );
91 | name = CirclePieViewExample;
92 | productName = CirclePieViewExample;
93 | productReference = EA8B24B71BC744A200CCD792 /* CirclePieViewExample.app */;
94 | productType = "com.apple.product-type.application";
95 | };
96 | /* End PBXNativeTarget section */
97 |
98 | /* Begin PBXProject section */
99 | EA8B24AF1BC744A200CCD792 /* Project object */ = {
100 | isa = PBXProject;
101 | attributes = {
102 | LastUpgradeCheck = 0700;
103 | ORGANIZATIONNAME = "Mark Jackson";
104 | TargetAttributes = {
105 | EA8B24B61BC744A200CCD792 = {
106 | CreatedOnToolsVersion = 7.0;
107 | };
108 | };
109 | };
110 | buildConfigurationList = EA8B24B21BC744A200CCD792 /* Build configuration list for PBXProject "CirclePieViewExample" */;
111 | compatibilityVersion = "Xcode 3.2";
112 | developmentRegion = English;
113 | hasScannedForEncodings = 0;
114 | knownRegions = (
115 | en,
116 | Base,
117 | );
118 | mainGroup = EA8B24AE1BC744A200CCD792;
119 | productRefGroup = EA8B24B81BC744A200CCD792 /* Products */;
120 | projectDirPath = "";
121 | projectRoot = "";
122 | targets = (
123 | EA8B24B61BC744A200CCD792 /* CirclePieViewExample */,
124 | );
125 | };
126 | /* End PBXProject section */
127 |
128 | /* Begin PBXResourcesBuildPhase section */
129 | EA8B24B51BC744A200CCD792 /* Resources */ = {
130 | isa = PBXResourcesBuildPhase;
131 | buildActionMask = 2147483647;
132 | files = (
133 | EA8B24C51BC744A200CCD792 /* LaunchScreen.storyboard in Resources */,
134 | EA8B24CF1BC7C4F400CCD792 /* CirclePieIndicatorView.xib in Resources */,
135 | EA8B24C21BC744A200CCD792 /* Assets.xcassets in Resources */,
136 | EA8B24C01BC744A200CCD792 /* Main.storyboard in Resources */,
137 | );
138 | runOnlyForDeploymentPostprocessing = 0;
139 | };
140 | /* End PBXResourcesBuildPhase section */
141 |
142 | /* Begin PBXSourcesBuildPhase section */
143 | EA8B24B31BC744A200CCD792 /* Sources */ = {
144 | isa = PBXSourcesBuildPhase;
145 | buildActionMask = 2147483647;
146 | files = (
147 | EA8B24BD1BC744A200CCD792 /* ViewController.swift in Sources */,
148 | EA8B24BB1BC744A200CCD792 /* AppDelegate.swift in Sources */,
149 | EA8B24CD1BC744CC00CCD792 /* CirclePieView.swift in Sources */,
150 | EA8B24D11BC7C60000CCD792 /* CirclePieIndicatorView.swift in Sources */,
151 | );
152 | runOnlyForDeploymentPostprocessing = 0;
153 | };
154 | /* End PBXSourcesBuildPhase section */
155 |
156 | /* Begin PBXVariantGroup section */
157 | EA8B24BE1BC744A200CCD792 /* Main.storyboard */ = {
158 | isa = PBXVariantGroup;
159 | children = (
160 | EA8B24BF1BC744A200CCD792 /* Base */,
161 | );
162 | name = Main.storyboard;
163 | sourceTree = "";
164 | };
165 | EA8B24C31BC744A200CCD792 /* LaunchScreen.storyboard */ = {
166 | isa = PBXVariantGroup;
167 | children = (
168 | EA8B24C41BC744A200CCD792 /* Base */,
169 | );
170 | name = LaunchScreen.storyboard;
171 | sourceTree = "";
172 | };
173 | /* End PBXVariantGroup section */
174 |
175 | /* Begin XCBuildConfiguration section */
176 | EA8B24C71BC744A200CCD792 /* Debug */ = {
177 | isa = XCBuildConfiguration;
178 | buildSettings = {
179 | ALWAYS_SEARCH_USER_PATHS = NO;
180 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
181 | CLANG_CXX_LIBRARY = "libc++";
182 | CLANG_ENABLE_MODULES = YES;
183 | CLANG_ENABLE_OBJC_ARC = YES;
184 | CLANG_WARN_BOOL_CONVERSION = YES;
185 | CLANG_WARN_CONSTANT_CONVERSION = YES;
186 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
187 | CLANG_WARN_EMPTY_BODY = YES;
188 | CLANG_WARN_ENUM_CONVERSION = YES;
189 | CLANG_WARN_INT_CONVERSION = YES;
190 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
191 | CLANG_WARN_UNREACHABLE_CODE = YES;
192 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
193 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
194 | COPY_PHASE_STRIP = NO;
195 | DEBUG_INFORMATION_FORMAT = dwarf;
196 | ENABLE_STRICT_OBJC_MSGSEND = YES;
197 | ENABLE_TESTABILITY = YES;
198 | GCC_C_LANGUAGE_STANDARD = gnu99;
199 | GCC_DYNAMIC_NO_PIC = NO;
200 | GCC_NO_COMMON_BLOCKS = YES;
201 | GCC_OPTIMIZATION_LEVEL = 0;
202 | GCC_PREPROCESSOR_DEFINITIONS = (
203 | "DEBUG=1",
204 | "$(inherited)",
205 | );
206 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
207 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
208 | GCC_WARN_UNDECLARED_SELECTOR = YES;
209 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
210 | GCC_WARN_UNUSED_FUNCTION = YES;
211 | GCC_WARN_UNUSED_VARIABLE = YES;
212 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
213 | MTL_ENABLE_DEBUG_INFO = YES;
214 | ONLY_ACTIVE_ARCH = YES;
215 | SDKROOT = iphoneos;
216 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
217 | };
218 | name = Debug;
219 | };
220 | EA8B24C81BC744A200CCD792 /* Release */ = {
221 | isa = XCBuildConfiguration;
222 | buildSettings = {
223 | ALWAYS_SEARCH_USER_PATHS = NO;
224 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
225 | CLANG_CXX_LIBRARY = "libc++";
226 | CLANG_ENABLE_MODULES = YES;
227 | CLANG_ENABLE_OBJC_ARC = YES;
228 | CLANG_WARN_BOOL_CONVERSION = YES;
229 | CLANG_WARN_CONSTANT_CONVERSION = YES;
230 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
231 | CLANG_WARN_EMPTY_BODY = YES;
232 | CLANG_WARN_ENUM_CONVERSION = YES;
233 | CLANG_WARN_INT_CONVERSION = YES;
234 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
235 | CLANG_WARN_UNREACHABLE_CODE = YES;
236 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
237 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
238 | COPY_PHASE_STRIP = NO;
239 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
240 | ENABLE_NS_ASSERTIONS = NO;
241 | ENABLE_STRICT_OBJC_MSGSEND = YES;
242 | GCC_C_LANGUAGE_STANDARD = gnu99;
243 | GCC_NO_COMMON_BLOCKS = YES;
244 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
245 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
246 | GCC_WARN_UNDECLARED_SELECTOR = YES;
247 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
248 | GCC_WARN_UNUSED_FUNCTION = YES;
249 | GCC_WARN_UNUSED_VARIABLE = YES;
250 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
251 | MTL_ENABLE_DEBUG_INFO = NO;
252 | SDKROOT = iphoneos;
253 | VALIDATE_PRODUCT = YES;
254 | };
255 | name = Release;
256 | };
257 | EA8B24CA1BC744A200CCD792 /* Debug */ = {
258 | isa = XCBuildConfiguration;
259 | buildSettings = {
260 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
261 | INFOPLIST_FILE = CirclePieViewExample/Info.plist;
262 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
263 | PRODUCT_BUNDLE_IDENTIFIER = jacks205.CirclePieViewExample;
264 | PRODUCT_NAME = "$(TARGET_NAME)";
265 | };
266 | name = Debug;
267 | };
268 | EA8B24CB1BC744A200CCD792 /* Release */ = {
269 | isa = XCBuildConfiguration;
270 | buildSettings = {
271 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
272 | INFOPLIST_FILE = CirclePieViewExample/Info.plist;
273 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
274 | PRODUCT_BUNDLE_IDENTIFIER = jacks205.CirclePieViewExample;
275 | PRODUCT_NAME = "$(TARGET_NAME)";
276 | };
277 | name = Release;
278 | };
279 | /* End XCBuildConfiguration section */
280 |
281 | /* Begin XCConfigurationList section */
282 | EA8B24B21BC744A200CCD792 /* Build configuration list for PBXProject "CirclePieViewExample" */ = {
283 | isa = XCConfigurationList;
284 | buildConfigurations = (
285 | EA8B24C71BC744A200CCD792 /* Debug */,
286 | EA8B24C81BC744A200CCD792 /* Release */,
287 | );
288 | defaultConfigurationIsVisible = 0;
289 | defaultConfigurationName = Release;
290 | };
291 | EA8B24C91BC744A200CCD792 /* Build configuration list for PBXNativeTarget "CirclePieViewExample" */ = {
292 | isa = XCConfigurationList;
293 | buildConfigurations = (
294 | EA8B24CA1BC744A200CCD792 /* Debug */,
295 | EA8B24CB1BC744A200CCD792 /* Release */,
296 | );
297 | defaultConfigurationIsVisible = 0;
298 | };
299 | /* End XCConfigurationList section */
300 | };
301 | rootObject = EA8B24AF1BC744A200CCD792 /* Project object */;
302 | }
303 |
--------------------------------------------------------------------------------