├── .swift-version ├── RKPieChart ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── RKPieChartItem.swift │ ├── RKChartTitleView.swift │ └── RKPieChartView.swift ├── _Pods.xcodeproj ├── Screenshots ├── chartView1.png ├── chartView2.png ├── chartView3.png ├── chartView4.png ├── chartView5.png ├── firstVideo.gif ├── multipleValue.gif └── Screen Shot 2017-09-02 at 20.04.28.png ├── Images.xcassets └── Contents.json ├── Example ├── RKPieChart.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── RKPieChart-Example.xcscheme │ └── project.pbxproj ├── Podfile ├── Tests │ ├── Info.plist │ └── Tests.swift └── RKPieChart │ ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Info.plist │ ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.xib │ ├── AppDelegate.swift │ └── ViewController.swift ├── .travis.yml ├── .gitignore ├── LICENSE ├── RKPieChart.podspec └── README.md /.swift-version: -------------------------------------------------------------------------------- 1 | 3.1 2 | -------------------------------------------------------------------------------- /RKPieChart/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /RKPieChart/Classes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /Screenshots/chartView1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ridvank/RKPieChart/HEAD/Screenshots/chartView1.png -------------------------------------------------------------------------------- /Screenshots/chartView2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ridvank/RKPieChart/HEAD/Screenshots/chartView2.png -------------------------------------------------------------------------------- /Screenshots/chartView3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ridvank/RKPieChart/HEAD/Screenshots/chartView3.png -------------------------------------------------------------------------------- /Screenshots/chartView4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ridvank/RKPieChart/HEAD/Screenshots/chartView4.png -------------------------------------------------------------------------------- /Screenshots/chartView5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ridvank/RKPieChart/HEAD/Screenshots/chartView5.png -------------------------------------------------------------------------------- /Screenshots/firstVideo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ridvank/RKPieChart/HEAD/Screenshots/firstVideo.gif -------------------------------------------------------------------------------- /Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Screenshots/multipleValue.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ridvank/RKPieChart/HEAD/Screenshots/multipleValue.gif -------------------------------------------------------------------------------- /Screenshots/Screen Shot 2017-09-02 at 20.04.28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ridvank/RKPieChart/HEAD/Screenshots/Screen Shot 2017-09-02 at 20.04.28.png -------------------------------------------------------------------------------- /Example/RKPieChart.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'RKPieChart_Example' do 4 | pod 'RKPieChart', :path => '../' 5 | 6 | target 'RKPieChart_Tests' do 7 | inherit! :search_paths 8 | 9 | end 10 | end 11 | 12 | post_install do |installer| 13 | installer.pods_project.targets.each do |target| 14 | target.build_configurations.each do |config| 15 | config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0' 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode8 6 | language: objective-c 7 | xcode_workspace: Example/RKPieChart.xcworkspace 8 | xcode_sdk: iphonesimulator10.0 9 | xcode_scheme: RKPieChartExample 10 | podfile: Example/Podfile 11 | on: 12 | repo: ridvank/RKPieChart 13 | tags: true 14 | before_install: 15 | - gem install cocoapods 16 | - pod install --project-directory=Example 17 | script: 18 | - set -o pipefail 19 | - xcodebuild -version 20 | -------------------------------------------------------------------------------- /RKPieChart/Classes/RKPieChartItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RKPieChartItem.swift 3 | // Pods 4 | // 5 | // Created by ridvan kuccuk on 01/09/2017. 6 | // 7 | // 8 | 9 | public class RKPieChartItem { 10 | 11 | var ratio: CGFloat 12 | var color: UIColor 13 | var startAngle: CGFloat? 14 | var endAngle: CGFloat? 15 | var title: String? 16 | 17 | public init(ratio: uint, color: UIColor, title: String? = nil) { 18 | self.ratio = CGFloat(ratio) 19 | self.color = color 20 | self.title = title 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /Example/Tests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import RKPieChart 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Example/RKPieChart/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 ridvank 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /RKPieChart.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint RKPieChart.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'RKPieChart' 11 | s.version = '0.0.1' 12 | s.summary = 'Create super easy pie charts with RKPieChart!' 13 | 14 | s.description = <<-DESC 15 | RKPieChart creates pie charts in super easy way for you. You can divide your pie chart if you want. You can add custom titles for your divided pies and etc. 16 | DESC 17 | 18 | s.homepage = 'https://github.com/ridvank/RKPieChart' 19 | s.license = { :type => 'MIT', :file => 'LICENSE' } 20 | s.author = { 'ridvank' => 'ridvankuccuk@gmail.com' } 21 | s.source = { :git => 'https://github.com/ridvank/RKPieChart.git', :tag => s.version.to_s } 22 | # s.social_media_url = 'https://www.linkedin.com/in/rıdvan-küçük-a6598593' 23 | 24 | s.ios.deployment_target = '9.0' 25 | 26 | s.source_files = 'RKPieChart/Classes/**/*' 27 | 28 | end 29 | -------------------------------------------------------------------------------- /Example/RKPieChart/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 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /RKPieChart/Classes/RKChartTitleView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PKChartTitleView.swift 3 | // Pods 4 | // 5 | // Created by ridvan kuccuk on 02/09/2017. 6 | // 7 | // 8 | 9 | import UIKit 10 | 11 | protocol Configurable { 12 | func configureSubviews() 13 | var item: RKPieChartItem { get set } 14 | } 15 | 16 | class RKChartTitleView: UIView, Configurable { 17 | 18 | var item: RKPieChartItem 19 | 20 | init(item: RKPieChartItem){ 21 | self.item = item 22 | super.init(frame: .zero) 23 | configureSubviews() 24 | } 25 | 26 | required init?(coder aDecoder: NSCoder) { 27 | fatalError("init(coder:) has not been implemented") 28 | } 29 | 30 | func configureSubviews() { 31 | 32 | let iconView = UIView(frame: .zero) 33 | iconView.translatesAutoresizingMaskIntoConstraints = false 34 | iconView.backgroundColor = item.color 35 | iconView.layer.cornerRadius = 4 36 | iconView.clipsToBounds = true 37 | addSubview(iconView) 38 | 39 | let titleLabel = UILabel(frame: .zero) 40 | titleLabel.translatesAutoresizingMaskIntoConstraints = false 41 | titleLabel.text = item.title 42 | titleLabel.font = UIFont(name: "HelveticaNeue", size: 12.0) 43 | titleLabel.numberOfLines = 1 44 | addSubview(titleLabel) 45 | 46 | iconView.heightAnchor.constraint(equalToConstant: 8).isActive = true 47 | iconView.widthAnchor.constraint(equalToConstant: 8).isActive = true 48 | iconView.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 35).isActive = true 49 | iconView.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true 50 | 51 | titleLabel.leadingAnchor.constraint(equalTo: iconView.trailingAnchor, constant: 8).isActive = true 52 | titleLabel.trailingAnchor.constraint(equalTo: trailingAnchor).isActive = true 53 | titleLabel.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true 54 | 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Example/RKPieChart/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 | -------------------------------------------------------------------------------- /Example/RKPieChart/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // RKPieChart 4 | // 5 | // Created by ridvank on 08/31/2017. 6 | // Copyright (c) 2017 ridvank. 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: [UIApplicationLaunchOptionsKey: Any]?) -> 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 | -------------------------------------------------------------------------------- /Example/RKPieChart/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // RKPieChart 4 | // 5 | // Created by ridvank on 08/31/2017. 6 | // Copyright (c) 2017 ridvank. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import RKPieChart 11 | 12 | class ViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | 17 | let firstItem: RKPieChartItem = RKPieChartItem(ratio: 50, color: UIColor.orange, title: "1️⃣th Item ") 18 | let secondItem: RKPieChartItem = RKPieChartItem(ratio: 30, color: UIColor.gray, title: "2️⃣nd Item") 19 | let thirdItem: RKPieChartItem = RKPieChartItem(ratio: 20, color: UIColor.yellow, title: "3️⃣th Item") 20 | 21 | let chartView = RKPieChartView(items: [firstItem, secondItem, thirdItem], centerTitle: "I am title 🕶") 22 | chartView.circleColor = .clear 23 | chartView.translatesAutoresizingMaskIntoConstraints = false 24 | chartView.arcWidth = 60 25 | chartView.isIntensityActivated = false 26 | chartView.style = .butt 27 | chartView.isTitleViewHidden = false 28 | chartView.isAnimationActivated = true 29 | self.view.addSubview(chartView) 30 | 31 | chartView.widthAnchor.constraint(equalToConstant: 250).isActive = true 32 | chartView.heightAnchor.constraint(equalToConstant: 250).isActive = true 33 | chartView.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true 34 | chartView.centerYAnchor.constraint(equalTo: self.view.centerYAnchor).isActive = true 35 | 36 | } 37 | 38 | } 39 | 40 | private extension UIColor { 41 | var dark: UIColor { 42 | var r:CGFloat = 0, g:CGFloat = 0, b:CGFloat = 0, a:CGFloat = 0 43 | 44 | if self.getRed(&r, green: &g, blue: &b, alpha: &a){ 45 | return UIColor(red: max(r - 0.4, 0.0), green: max(g - 0.4, 0.0), blue: max(b - 0.4, 0.0), alpha: a) 46 | } 47 | 48 | return UIColor() 49 | } 50 | var light: UIColor { 51 | var r:CGFloat = 0, g:CGFloat = 0, b:CGFloat = 0, a:CGFloat = 0 52 | 53 | if self.getRed(&r, green: &g, blue: &b, alpha: &a){ 54 | return UIColor(red: min(r + 0.4, 1.0), green: min(g + 0.4, 1.0), blue: min(b + 0.4, 1.0), alpha: a) 55 | } 56 | 57 | return UIColor() 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /Example/RKPieChart/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![RKPieChart: Super easy Pie Chart](https://github.com/ridvank/RKPieChart/blob/development/Screenshots/Screen%20Shot%202017-09-02%20at%2020.04.28.png) 2 | 3 | [![Cocoapod](http://img.shields.io/cocoapods/v/RKPieChart.svg?style=flat)](http://cocoadocs.org/docsets/RKPieChart/) 4 | [![CI Status](http://img.shields.io/travis/ridvank/RKPieChart.svg?style=flat)](https://travis-ci.org/ridvank/RKPieChart) 5 | [![Version](https://img.shields.io/cocoapods/v/RKPieChart.svg?style=flat)](http://cocoapods.org/pods/RKPieChart) 6 | [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://raw.githubusercontent.com/ridvank/RKPieChart/master/LICENSE) 7 | [![Platform](http://img.shields.io/badge/platform-ios-lightgrey.svg?style=flat)](https://developer.apple.com/resources/) 8 | [![Language](https://img.shields.io/badge/swift-3.1-orange.svg)](https://developer.apple.com/swift) 9 | 10 | RKPieChart is super easy pie chart view written in Swift 3. 11 | 12 | ### Screenshots 13 | 14 |

15 | 16 | 17 | 18 | 19 |

20 | 21 | ### Animations 22 | ![0](https://github.com/ridvank/RKPieChart/blob/development/Screenshots/firstVideo.gif) 23 | ![1](https://github.com/ridvank/RKPieChart/blob/development/Screenshots/multipleValue.gif) 24 | 25 | ## Initalization 26 | 27 | First of all single or multiple RKPieChartItem should be created. ```ratio``` and ```color``` are required but ```title``` variable is optional on init method. 28 | ```swift 29 | let firstItem: RKPieChartItem = RKPieChartItem(ratio: 50, color: .orange, title: "1️⃣th Item ") 30 | let secondItem: RKPieChartItem = RKPieChartItem(ratio: 30, color: .gray, title: "2️⃣nd Item") 31 | let thirdItem: RKPieChartItem = RKPieChartItem(ratio: 20, color: .yellow, title: "3️⃣th Item") 32 | ``` 33 | Initalization is also simple; ```items``` variable is required and ```centerTitle``` variable is optional. 34 | ```swift 35 | let chartView = RKPieChartView(items: [firstItem, secondItem, thirdItem], centerTitle: "I am title 🕶") 36 | ``` 37 | You can change background color of the pie chart circle: 38 | ```swift 39 | chartView.circleColor = .green 40 | ``` 41 | To change the arc width of the chart: 42 | ```swift 43 | chartView.arcWidth = 60 44 | ``` 45 | You can also give indensity to the chart by updating ```isIntensityActivated``` variable. ```false``` is the default behaviour. 46 | ```swift 47 | chartView.isIntensityActivated = true 48 | ``` 49 | You can update the style of the pie chart. 3 types supported. ```butt```,```square``` and ```round```. If you have 1 item to show you can choose all of them. However If you have multiple item ```round``` and ```square``` not supported. 50 | ```swift 51 | chartView.style = .butt 52 | ``` 53 | You can hide the ```RKPieChart``` item title if you want by using: 54 | ```swift 55 | chartView.isTitleViewHidden = false 56 | ``` 57 | You can animate ```RKPieChart``` view if you want by using: 58 | ```swift 59 | chartView.isAnimationActivated = true 60 | ``` 61 | Default type is ```false``` which means no animation will be executed. 62 | 63 | ## Example 64 | 65 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 66 | 67 | ## Requirements 68 | 69 | * Xcode 8 70 | * iOS 9.0+ 71 | 72 | ## Installation 73 | 74 | RKPieChart is available through [CocoaPods](http://cocoapods.org). To install 75 | it, simply add the following line to your Podfile: 76 | 77 | ```ruby 78 | pod "RKPieChart" 79 | ``` 80 | 81 | ## Author 82 | 83 | Ridvan Kuccuk, ridvankuccuk@gmail.com 84 | 85 | ## License 86 | 87 | RKPieChart is available under the MIT license. See the LICENSE file for more info. 88 | -------------------------------------------------------------------------------- /Example/RKPieChart.xcodeproj/xcshareddata/xcschemes/RKPieChart-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /RKPieChart/Classes/RKPieChartView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RKPieChart.swift 3 | // Pods 4 | // 5 | // Created by ridvan kuccuk on 31/08/2017. 6 | // 7 | // 8 | 9 | import CoreGraphics 10 | 11 | let π: CGFloat = CGFloat(Double.pi) 12 | 13 | private enum LineCapStyle: Int { 14 | 15 | case butt = 0 16 | case round 17 | case style 18 | 19 | var description: String { 20 | get { return String(describing: self) } 21 | } 22 | } 23 | 24 | public class RKPieChartView: UIView { 25 | 26 | /// background color of the pie 27 | public var circleColor: UIColor = .white { 28 | didSet { 29 | setNeedsLayout() 30 | } 31 | } 32 | 33 | 34 | /// width of the each item 35 | public var arcWidth: CGFloat = 75 { 36 | didSet { 37 | setNeedsLayout() 38 | } 39 | } 40 | 41 | 42 | /// add intensity to item or not 43 | public var isIntensityActivated: Bool = false { 44 | didSet { 45 | setNeedsLayout() 46 | } 47 | } 48 | 49 | /// show the titles of the item or not 50 | public var isTitleViewHidden: Bool = false { 51 | didSet { 52 | if !isTitleViewHidden { 53 | titlesView?.removeFromSuperview() 54 | updateConstraints() 55 | } 56 | } 57 | } 58 | 59 | /// line cap style. ex: butt, round, square 60 | public var style: CGLineCap = .butt { 61 | didSet { 62 | if (items.count != 1 && style != .butt) { 63 | assertionFailure("Number of items should be equal to 1 to update style") 64 | style = .butt 65 | } 66 | setNeedsLayout() 67 | } 68 | } 69 | 70 | 71 | /// animate each item or not 72 | public var isAnimationActivated: Bool = false { 73 | didSet { 74 | setNeedsLayout() 75 | } 76 | } 77 | 78 | private var items: [RKPieChartItem] = [RKPieChartItem]() 79 | private var titlesView: UIStackView? 80 | private var totalRatio: CGFloat = 0 81 | private let itemHeight: CGFloat = 10.0 82 | private var centerTitle: String? 83 | private var centerLabel: UILabel? 84 | 85 | private var currentTime = CACurrentMediaTime() 86 | 87 | override public func draw(_ rect: CGRect) { 88 | 89 | // Center of the view 90 | let center = calculateCenter() 91 | 92 | // Radius of the view 93 | let radius = calculateRadius() 94 | 95 | let arcWidth: CGFloat = self.arcWidth 96 | 97 | let circlePath = UIBezierPath(arcCenter: center, 98 | radius: radius/2 - arcWidth/2, 99 | startAngle: 0, 100 | endAngle: 2 * π, 101 | clockwise: true) 102 | 103 | // draw circle path 104 | circlePath.lineWidth = arcWidth 105 | circleColor.setStroke() 106 | circlePath.lineCapStyle = style 107 | circlePath.stroke() 108 | 109 | if (items.count > 0) { 110 | drawCircle() 111 | } 112 | } 113 | 114 | 115 | /// Init PKPieChartView 116 | /// 117 | /// - Parameters: 118 | /// - items: pie chart items to be displayed 119 | /// - centerTitle: add title to the center of the pie chart 120 | convenience public init(items: [RKPieChartItem], centerTitle: String? = nil) { 121 | self.init() 122 | self.items = items 123 | self.centerTitle = centerTitle 124 | calculateAngles() 125 | backgroundColor = .clear 126 | } 127 | 128 | public override func layoutSubviews() { 129 | super.layoutSubviews() 130 | if !isTitleViewHidden { 131 | showChildTitles() 132 | } 133 | } 134 | 135 | private func drawCircle(){ 136 | items.forEach { (item) in 137 | // Center of the view 138 | let center = calculateCenter() 139 | 140 | // Radius of the view 141 | let radius: CGFloat = calculateRadius() 142 | let arcWidth: CGFloat = self.arcWidth 143 | let circlePath = UIBezierPath(arcCenter: center, 144 | radius: radius/2 - arcWidth/2, 145 | startAngle: item.startAngle!, 146 | endAngle: item.endAngle!, 147 | clockwise: true) 148 | 149 | circlePath.lineCapStyle = style 150 | 151 | if(!isAnimationActivated) { 152 | // Draw circle path 153 | circlePath.lineWidth = arcWidth 154 | circlePath.lineCapStyle = style 155 | item.color.setStroke() 156 | circlePath.stroke() 157 | } 158 | else { 159 | let shapeLayer: CAShapeLayer = CAShapeLayer() 160 | shapeLayer.path = circlePath.cgPath 161 | shapeLayer.strokeColor = item.color.cgColor 162 | shapeLayer.lineWidth = arcWidth 163 | shapeLayer.fillColor = UIColor.clear.cgColor 164 | 165 | if let lineCap = (LineCapStyle(rawValue: Int(style.rawValue))?.description) { 166 | shapeLayer.lineCap = lineCap 167 | } 168 | 169 | layer.addSublayer(shapeLayer) 170 | 171 | let animation = CABasicAnimation(keyPath: "strokeEnd") 172 | animation.duration = 0.5 173 | animation.fromValue = 0.0 174 | animation.toValue = 1.0 175 | shapeLayer.add(animation, forKey: "strokeEnd") 176 | } 177 | 178 | if (isIntensityActivated) { 179 | let deepPath = UIBezierPath(arcCenter: center, 180 | radius: radius/2 - arcWidth - 5, 181 | startAngle: item.startAngle!, 182 | endAngle: item.endAngle!, 183 | clockwise: true) 184 | deepPath.lineWidth = 10 185 | item.color.light.setStroke() 186 | deepPath.lineCapStyle = style 187 | deepPath.stroke() 188 | } 189 | if(centerLabel == nil && centerTitle != nil) { 190 | centerLabel = UILabel(frame: .zero) 191 | centerLabel?.translatesAutoresizingMaskIntoConstraints = false 192 | centerLabel?.font = UIFont(name: "HelveticaNeue", size: 14.0) 193 | centerLabel?.minimumScaleFactor = 0.7 194 | centerLabel?.numberOfLines = 2 195 | centerLabel?.textAlignment = .center 196 | centerLabel?.text = centerTitle 197 | self.addSubview(centerLabel!) 198 | 199 | centerLabel?.centerXAnchor.constraint(equalTo: centerXAnchor).isActive = true 200 | centerLabel?.widthAnchor.constraint(equalToConstant: radius/2 - arcWidth/2).isActive = true 201 | 202 | if (isTitleViewHidden) { 203 | centerLabel?.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true 204 | } 205 | else { 206 | centerLabel?.centerYAnchor.constraint(equalTo: centerYAnchor, constant: -(CGFloat(items.count) * itemHeight)).isActive = true 207 | } 208 | } 209 | } 210 | } 211 | 212 | 213 | /// calculate each item's angle to present pie chart 214 | private func calculateAngles() { 215 | totalRatio = items.map({ $0.ratio }).reduce(0, { $0 + $1 }) 216 | for (index, item) in items.enumerated() { 217 | item.startAngle = index == 0 ? 3 * π / 2 : items[index - 1].endAngle 218 | if items.count == 1 { 219 | totalRatio = 100 220 | } 221 | item.endAngle = item.startAngle! + (360 * item.ratio / totalRatio).degreesToRadians 222 | if item.endAngle! > 2 * π { 223 | item.endAngle = item.endAngle! - 2 * π 224 | } 225 | } 226 | } 227 | 228 | 229 | /// show each item's title 230 | private func showChildTitles() { 231 | if (titlesView == nil) { 232 | titlesView = UIStackView(frame: CGRect(x: 0, y: bounds.height - (CGFloat(2 * items.count) * itemHeight), width: bounds.width, height: CGFloat(2 * items.count) * itemHeight)) 233 | titlesView?.backgroundColor = .gray 234 | titlesView?.axis = .vertical 235 | titlesView?.distribution = .fillEqually 236 | titlesView?.alignment = .fill 237 | self.addSubview(titlesView!) 238 | 239 | items.forEach({ (item) in 240 | let view = RKChartTitleView(item: item) 241 | titlesView?.addArrangedSubview(view) 242 | }) 243 | } 244 | } 245 | 246 | /// calculate center of the graph 247 | /// 248 | /// - Returns: point of the center 249 | private func calculateCenter() -> CGPoint { 250 | if isTitleViewHidden { 251 | return CGPoint(x:bounds.width/2, y: bounds.height/2) 252 | } 253 | else { 254 | return CGPoint(x:bounds.width/2, y: bounds.height/2 - CGFloat(items.count) * itemHeight) 255 | } 256 | } 257 | 258 | /// calculate radius of the graph 259 | /// 260 | /// - Returns: value of the radius 261 | private func calculateRadius() -> CGFloat { 262 | if isTitleViewHidden { 263 | return min(bounds.width, bounds.height) 264 | } 265 | else { 266 | return min(bounds.width - CGFloat(items.count) * 2 * itemHeight, bounds.height - CGFloat(items.count) * 2 * itemHeight) 267 | } 268 | } 269 | } 270 | 271 | private extension Int { 272 | var degreesToRadians: Double { return Double(self) * .pi / 180 } 273 | } 274 | 275 | private extension FloatingPoint { 276 | var degreesToRadians: Self { return self * .pi / 180 } 277 | var radiansToDegrees: Self { return self * 180 / .pi } 278 | } 279 | 280 | private extension UIColor { 281 | var dark: UIColor { 282 | var r:CGFloat = 0, g:CGFloat = 0, b:CGFloat = 0, a:CGFloat = 0 283 | 284 | if self.getRed(&r, green: &g, blue: &b, alpha: &a){ 285 | return UIColor(red: max(r - 0.4, 0.0), green: max(g - 0.4, 0.0), blue: max(b - 0.4, 0.0), alpha: a) 286 | } 287 | 288 | return UIColor() 289 | } 290 | var light: UIColor { 291 | var r:CGFloat = 0, g:CGFloat = 0, b:CGFloat = 0, a:CGFloat = 0 292 | 293 | if self.getRed(&r, green: &g, blue: &b, alpha: &a){ 294 | return UIColor(red: min(r + 0.4, 1.0), green: min(g + 0.4, 1.0), blue: min(b + 0.4, 1.0), alpha: a) 295 | } 296 | 297 | return UIColor() 298 | } 299 | 300 | } 301 | -------------------------------------------------------------------------------- /Example/RKPieChart.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1A26B7D0CF5C23D04F00ADA2 /* Pods_RKPieChart_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C2263CE222167AF008C90E62 /* Pods_RKPieChart_Example.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | C9815250BD23F01172174624 /* Pods_RKPieChart_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 47256F077269B8691B2327A8 /* Pods_RKPieChart_Tests.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = RKPieChart; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 155FFA1778BE6B97DD7BE8ED /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 32 | 47256F077269B8691B2327A8 /* Pods_RKPieChart_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RKPieChart_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 5599C245550E4E33AA795A4A /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 34 | 607FACD01AFB9204008FA782 /* RKPieChart_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RKPieChart_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 38 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 39 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 40 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 41 | 607FACE51AFB9204008FA782 /* RKPieChart_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RKPieChart_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 44 | 6A241D94CCEADFCD5FA81476 /* Pods-RKPieChart_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RKPieChart_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RKPieChart_Tests/Pods-RKPieChart_Tests.debug.xcconfig"; sourceTree = ""; }; 45 | 8268808228469FF083B9C3F8 /* RKPieChart.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = RKPieChart.podspec; path = ../RKPieChart.podspec; sourceTree = ""; }; 46 | 9C18DA70D3CF70449CEEF542 /* Pods-RKPieChart_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RKPieChart_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-RKPieChart_Tests/Pods-RKPieChart_Tests.release.xcconfig"; sourceTree = ""; }; 47 | A41D1E1928F08B0E4CFB63EE /* Pods-RKPieChart_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RKPieChart_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RKPieChart_Example/Pods-RKPieChart_Example.debug.xcconfig"; sourceTree = ""; }; 48 | C2263CE222167AF008C90E62 /* Pods_RKPieChart_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RKPieChart_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | D876E15ABF0EBC3C3D37D54A /* Pods-RKPieChart_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RKPieChart_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-RKPieChart_Example/Pods-RKPieChart_Example.release.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 1A26B7D0CF5C23D04F00ADA2 /* Pods_RKPieChart_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | C9815250BD23F01172174624 /* Pods_RKPieChart_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 0B17EEEEF9B4593AAA2D5526 /* Frameworks */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | C2263CE222167AF008C90E62 /* Pods_RKPieChart_Example.framework */, 76 | 47256F077269B8691B2327A8 /* Pods_RKPieChart_Tests.framework */, 77 | ); 78 | name = Frameworks; 79 | sourceTree = ""; 80 | }; 81 | 39418DAE69F02FACDB8A6759 /* Pods */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | A41D1E1928F08B0E4CFB63EE /* Pods-RKPieChart_Example.debug.xcconfig */, 85 | D876E15ABF0EBC3C3D37D54A /* Pods-RKPieChart_Example.release.xcconfig */, 86 | 6A241D94CCEADFCD5FA81476 /* Pods-RKPieChart_Tests.debug.xcconfig */, 87 | 9C18DA70D3CF70449CEEF542 /* Pods-RKPieChart_Tests.release.xcconfig */, 88 | ); 89 | name = Pods; 90 | sourceTree = ""; 91 | }; 92 | 607FACC71AFB9204008FA782 = { 93 | isa = PBXGroup; 94 | children = ( 95 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 96 | 607FACD21AFB9204008FA782 /* Example for RKPieChart */, 97 | 607FACE81AFB9204008FA782 /* Tests */, 98 | 607FACD11AFB9204008FA782 /* Products */, 99 | 39418DAE69F02FACDB8A6759 /* Pods */, 100 | 0B17EEEEF9B4593AAA2D5526 /* Frameworks */, 101 | ); 102 | sourceTree = ""; 103 | }; 104 | 607FACD11AFB9204008FA782 /* Products */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 607FACD01AFB9204008FA782 /* RKPieChart_Example.app */, 108 | 607FACE51AFB9204008FA782 /* RKPieChart_Tests.xctest */, 109 | ); 110 | name = Products; 111 | sourceTree = ""; 112 | }; 113 | 607FACD21AFB9204008FA782 /* Example for RKPieChart */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 117 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 118 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 119 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 120 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 121 | 607FACD31AFB9204008FA782 /* Supporting Files */, 122 | ); 123 | name = "Example for RKPieChart"; 124 | path = RKPieChart; 125 | sourceTree = ""; 126 | }; 127 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 607FACD41AFB9204008FA782 /* Info.plist */, 131 | ); 132 | name = "Supporting Files"; 133 | sourceTree = ""; 134 | }; 135 | 607FACE81AFB9204008FA782 /* Tests */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 139 | 607FACE91AFB9204008FA782 /* Supporting Files */, 140 | ); 141 | path = Tests; 142 | sourceTree = ""; 143 | }; 144 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 607FACEA1AFB9204008FA782 /* Info.plist */, 148 | ); 149 | name = "Supporting Files"; 150 | sourceTree = ""; 151 | }; 152 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 8268808228469FF083B9C3F8 /* RKPieChart.podspec */, 156 | 155FFA1778BE6B97DD7BE8ED /* README.md */, 157 | 5599C245550E4E33AA795A4A /* LICENSE */, 158 | ); 159 | name = "Podspec Metadata"; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* RKPieChart_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "RKPieChart_Example" */; 168 | buildPhases = ( 169 | 0B90398FA376B4CAC79CA6B1 /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | EE42BC693450D148C600326B /* [CP] Embed Pods Frameworks */, 174 | F119FDF3C199C23981CD93E6 /* [CP] Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = RKPieChart_Example; 181 | productName = RKPieChart; 182 | productReference = 607FACD01AFB9204008FA782 /* RKPieChart_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* RKPieChart_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "RKPieChart_Tests" */; 188 | buildPhases = ( 189 | 6300D817C23D1A982CE1D80D /* [CP] Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | C80CC2674EF512F740877FA6 /* [CP] Embed Pods Frameworks */, 194 | 87A86DE5105D8BA2103BA122 /* [CP] Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = RKPieChart_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* RKPieChart_Tests.xctest */; 204 | productType = "com.apple.product-type.bundle.unit-test"; 205 | }; 206 | /* End PBXNativeTarget section */ 207 | 208 | /* Begin PBXProject section */ 209 | 607FACC81AFB9204008FA782 /* Project object */ = { 210 | isa = PBXProject; 211 | attributes = { 212 | LastSwiftUpdateCheck = 0720; 213 | LastUpgradeCheck = 0820; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | LastSwiftMigration = 0820; 219 | }; 220 | 607FACE41AFB9204008FA782 = { 221 | CreatedOnToolsVersion = 6.3.1; 222 | LastSwiftMigration = 0820; 223 | TestTargetID = 607FACCF1AFB9204008FA782; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "RKPieChart" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | en, 233 | Base, 234 | ); 235 | mainGroup = 607FACC71AFB9204008FA782; 236 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 237 | projectDirPath = ""; 238 | projectRoot = ""; 239 | targets = ( 240 | 607FACCF1AFB9204008FA782 /* RKPieChart_Example */, 241 | 607FACE41AFB9204008FA782 /* RKPieChart_Tests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 607FACCE1AFB9204008FA782 /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 252 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 253 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 607FACE31AFB9204008FA782 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXResourcesBuildPhase section */ 265 | 266 | /* Begin PBXShellScriptBuildPhase section */ 267 | 0B90398FA376B4CAC79CA6B1 /* [CP] Check Pods Manifest.lock */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 274 | "${PODS_ROOT}/Manifest.lock", 275 | ); 276 | name = "[CP] Check Pods Manifest.lock"; 277 | outputPaths = ( 278 | "$(DERIVED_FILE_DIR)/Pods-RKPieChart_Example-checkManifestLockResult.txt", 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | shellPath = /bin/sh; 282 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 283 | showEnvVarsInLog = 0; 284 | }; 285 | 6300D817C23D1A982CE1D80D /* [CP] Check Pods Manifest.lock */ = { 286 | isa = PBXShellScriptBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | ); 290 | inputPaths = ( 291 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 292 | "${PODS_ROOT}/Manifest.lock", 293 | ); 294 | name = "[CP] Check Pods Manifest.lock"; 295 | outputPaths = ( 296 | "$(DERIVED_FILE_DIR)/Pods-RKPieChart_Tests-checkManifestLockResult.txt", 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | shellPath = /bin/sh; 300 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 301 | showEnvVarsInLog = 0; 302 | }; 303 | 87A86DE5105D8BA2103BA122 /* [CP] Copy Pods Resources */ = { 304 | isa = PBXShellScriptBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | ); 308 | inputPaths = ( 309 | ); 310 | name = "[CP] Copy Pods Resources"; 311 | outputPaths = ( 312 | ); 313 | runOnlyForDeploymentPostprocessing = 0; 314 | shellPath = /bin/sh; 315 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RKPieChart_Tests/Pods-RKPieChart_Tests-resources.sh\"\n"; 316 | showEnvVarsInLog = 0; 317 | }; 318 | C80CC2674EF512F740877FA6 /* [CP] Embed Pods Frameworks */ = { 319 | isa = PBXShellScriptBuildPhase; 320 | buildActionMask = 2147483647; 321 | files = ( 322 | ); 323 | inputPaths = ( 324 | "${SRCROOT}/Pods/Target Support Files/Pods-RKPieChart_Tests/Pods-RKPieChart_Tests-frameworks.sh", 325 | "${BUILT_PRODUCTS_DIR}/FBSnapshotTestCase/FBSnapshotTestCase.framework", 326 | ); 327 | name = "[CP] Embed Pods Frameworks"; 328 | outputPaths = ( 329 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBSnapshotTestCase.framework", 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | shellPath = /bin/sh; 333 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RKPieChart_Tests/Pods-RKPieChart_Tests-frameworks.sh\"\n"; 334 | showEnvVarsInLog = 0; 335 | }; 336 | EE42BC693450D148C600326B /* [CP] Embed Pods Frameworks */ = { 337 | isa = PBXShellScriptBuildPhase; 338 | buildActionMask = 2147483647; 339 | files = ( 340 | ); 341 | inputPaths = ( 342 | "${SRCROOT}/Pods/Target Support Files/Pods-RKPieChart_Example/Pods-RKPieChart_Example-frameworks.sh", 343 | "${BUILT_PRODUCTS_DIR}/RKPieChart/RKPieChart.framework", 344 | ); 345 | name = "[CP] Embed Pods Frameworks"; 346 | outputPaths = ( 347 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RKPieChart.framework", 348 | ); 349 | runOnlyForDeploymentPostprocessing = 0; 350 | shellPath = /bin/sh; 351 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RKPieChart_Example/Pods-RKPieChart_Example-frameworks.sh\"\n"; 352 | showEnvVarsInLog = 0; 353 | }; 354 | F119FDF3C199C23981CD93E6 /* [CP] Copy Pods Resources */ = { 355 | isa = PBXShellScriptBuildPhase; 356 | buildActionMask = 2147483647; 357 | files = ( 358 | ); 359 | inputPaths = ( 360 | ); 361 | name = "[CP] Copy Pods Resources"; 362 | outputPaths = ( 363 | ); 364 | runOnlyForDeploymentPostprocessing = 0; 365 | shellPath = /bin/sh; 366 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RKPieChart_Example/Pods-RKPieChart_Example-resources.sh\"\n"; 367 | showEnvVarsInLog = 0; 368 | }; 369 | /* End PBXShellScriptBuildPhase section */ 370 | 371 | /* Begin PBXSourcesBuildPhase section */ 372 | 607FACCC1AFB9204008FA782 /* Sources */ = { 373 | isa = PBXSourcesBuildPhase; 374 | buildActionMask = 2147483647; 375 | files = ( 376 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 377 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 378 | ); 379 | runOnlyForDeploymentPostprocessing = 0; 380 | }; 381 | 607FACE11AFB9204008FA782 /* Sources */ = { 382 | isa = PBXSourcesBuildPhase; 383 | buildActionMask = 2147483647; 384 | files = ( 385 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 386 | ); 387 | runOnlyForDeploymentPostprocessing = 0; 388 | }; 389 | /* End PBXSourcesBuildPhase section */ 390 | 391 | /* Begin PBXTargetDependency section */ 392 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 393 | isa = PBXTargetDependency; 394 | target = 607FACCF1AFB9204008FA782 /* RKPieChart_Example */; 395 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 396 | }; 397 | /* End PBXTargetDependency section */ 398 | 399 | /* Begin PBXVariantGroup section */ 400 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 401 | isa = PBXVariantGroup; 402 | children = ( 403 | 607FACDA1AFB9204008FA782 /* Base */, 404 | ); 405 | name = Main.storyboard; 406 | sourceTree = ""; 407 | }; 408 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 409 | isa = PBXVariantGroup; 410 | children = ( 411 | 607FACDF1AFB9204008FA782 /* Base */, 412 | ); 413 | name = LaunchScreen.xib; 414 | sourceTree = ""; 415 | }; 416 | /* End PBXVariantGroup section */ 417 | 418 | /* Begin XCBuildConfiguration section */ 419 | 607FACED1AFB9204008FA782 /* Debug */ = { 420 | isa = XCBuildConfiguration; 421 | buildSettings = { 422 | ALWAYS_SEARCH_USER_PATHS = NO; 423 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 424 | CLANG_CXX_LIBRARY = "libc++"; 425 | CLANG_ENABLE_MODULES = YES; 426 | CLANG_ENABLE_OBJC_ARC = YES; 427 | CLANG_WARN_BOOL_CONVERSION = YES; 428 | CLANG_WARN_CONSTANT_CONVERSION = YES; 429 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 430 | CLANG_WARN_EMPTY_BODY = YES; 431 | CLANG_WARN_ENUM_CONVERSION = YES; 432 | CLANG_WARN_INFINITE_RECURSION = YES; 433 | CLANG_WARN_INT_CONVERSION = YES; 434 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 435 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 436 | CLANG_WARN_UNREACHABLE_CODE = YES; 437 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 438 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 439 | COPY_PHASE_STRIP = NO; 440 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 441 | ENABLE_STRICT_OBJC_MSGSEND = YES; 442 | ENABLE_TESTABILITY = YES; 443 | GCC_C_LANGUAGE_STANDARD = gnu99; 444 | GCC_DYNAMIC_NO_PIC = NO; 445 | GCC_NO_COMMON_BLOCKS = YES; 446 | GCC_OPTIMIZATION_LEVEL = 0; 447 | GCC_PREPROCESSOR_DEFINITIONS = ( 448 | "DEBUG=1", 449 | "$(inherited)", 450 | ); 451 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 452 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 453 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 454 | GCC_WARN_UNDECLARED_SELECTOR = YES; 455 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 456 | GCC_WARN_UNUSED_FUNCTION = YES; 457 | GCC_WARN_UNUSED_VARIABLE = YES; 458 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 459 | MTL_ENABLE_DEBUG_INFO = YES; 460 | ONLY_ACTIVE_ARCH = YES; 461 | SDKROOT = iphoneos; 462 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 463 | }; 464 | name = Debug; 465 | }; 466 | 607FACEE1AFB9204008FA782 /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | buildSettings = { 469 | ALWAYS_SEARCH_USER_PATHS = NO; 470 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 471 | CLANG_CXX_LIBRARY = "libc++"; 472 | CLANG_ENABLE_MODULES = YES; 473 | CLANG_ENABLE_OBJC_ARC = YES; 474 | CLANG_WARN_BOOL_CONVERSION = YES; 475 | CLANG_WARN_CONSTANT_CONVERSION = YES; 476 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 477 | CLANG_WARN_EMPTY_BODY = YES; 478 | CLANG_WARN_ENUM_CONVERSION = YES; 479 | CLANG_WARN_INFINITE_RECURSION = YES; 480 | CLANG_WARN_INT_CONVERSION = YES; 481 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 482 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 483 | CLANG_WARN_UNREACHABLE_CODE = YES; 484 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 485 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 486 | COPY_PHASE_STRIP = NO; 487 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 488 | ENABLE_NS_ASSERTIONS = NO; 489 | ENABLE_STRICT_OBJC_MSGSEND = YES; 490 | GCC_C_LANGUAGE_STANDARD = gnu99; 491 | GCC_NO_COMMON_BLOCKS = YES; 492 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 493 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 494 | GCC_WARN_UNDECLARED_SELECTOR = YES; 495 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 496 | GCC_WARN_UNUSED_FUNCTION = YES; 497 | GCC_WARN_UNUSED_VARIABLE = YES; 498 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 499 | MTL_ENABLE_DEBUG_INFO = NO; 500 | SDKROOT = iphoneos; 501 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 502 | VALIDATE_PRODUCT = YES; 503 | }; 504 | name = Release; 505 | }; 506 | 607FACF01AFB9204008FA782 /* Debug */ = { 507 | isa = XCBuildConfiguration; 508 | baseConfigurationReference = A41D1E1928F08B0E4CFB63EE /* Pods-RKPieChart_Example.debug.xcconfig */; 509 | buildSettings = { 510 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 511 | INFOPLIST_FILE = RKPieChart/Info.plist; 512 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 513 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 514 | MODULE_NAME = ExampleApp; 515 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 516 | PRODUCT_NAME = "$(TARGET_NAME)"; 517 | SWIFT_VERSION = 3.0; 518 | }; 519 | name = Debug; 520 | }; 521 | 607FACF11AFB9204008FA782 /* Release */ = { 522 | isa = XCBuildConfiguration; 523 | baseConfigurationReference = D876E15ABF0EBC3C3D37D54A /* Pods-RKPieChart_Example.release.xcconfig */; 524 | buildSettings = { 525 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 526 | INFOPLIST_FILE = RKPieChart/Info.plist; 527 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 528 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 529 | MODULE_NAME = ExampleApp; 530 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 531 | PRODUCT_NAME = "$(TARGET_NAME)"; 532 | SWIFT_VERSION = 3.0; 533 | }; 534 | name = Release; 535 | }; 536 | 607FACF31AFB9204008FA782 /* Debug */ = { 537 | isa = XCBuildConfiguration; 538 | baseConfigurationReference = 6A241D94CCEADFCD5FA81476 /* Pods-RKPieChart_Tests.debug.xcconfig */; 539 | buildSettings = { 540 | FRAMEWORK_SEARCH_PATHS = ( 541 | "$(SDKROOT)/Developer/Library/Frameworks", 542 | "$(inherited)", 543 | ); 544 | GCC_PREPROCESSOR_DEFINITIONS = ( 545 | "DEBUG=1", 546 | "$(inherited)", 547 | ); 548 | INFOPLIST_FILE = Tests/Info.plist; 549 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 550 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 551 | PRODUCT_NAME = "$(TARGET_NAME)"; 552 | SWIFT_VERSION = 3.0; 553 | }; 554 | name = Debug; 555 | }; 556 | 607FACF41AFB9204008FA782 /* Release */ = { 557 | isa = XCBuildConfiguration; 558 | baseConfigurationReference = 9C18DA70D3CF70449CEEF542 /* Pods-RKPieChart_Tests.release.xcconfig */; 559 | buildSettings = { 560 | FRAMEWORK_SEARCH_PATHS = ( 561 | "$(SDKROOT)/Developer/Library/Frameworks", 562 | "$(inherited)", 563 | ); 564 | INFOPLIST_FILE = Tests/Info.plist; 565 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 566 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 567 | PRODUCT_NAME = "$(TARGET_NAME)"; 568 | SWIFT_VERSION = 3.0; 569 | }; 570 | name = Release; 571 | }; 572 | /* End XCBuildConfiguration section */ 573 | 574 | /* Begin XCConfigurationList section */ 575 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "RKPieChart" */ = { 576 | isa = XCConfigurationList; 577 | buildConfigurations = ( 578 | 607FACED1AFB9204008FA782 /* Debug */, 579 | 607FACEE1AFB9204008FA782 /* Release */, 580 | ); 581 | defaultConfigurationIsVisible = 0; 582 | defaultConfigurationName = Release; 583 | }; 584 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "RKPieChart_Example" */ = { 585 | isa = XCConfigurationList; 586 | buildConfigurations = ( 587 | 607FACF01AFB9204008FA782 /* Debug */, 588 | 607FACF11AFB9204008FA782 /* Release */, 589 | ); 590 | defaultConfigurationIsVisible = 0; 591 | defaultConfigurationName = Release; 592 | }; 593 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "RKPieChart_Tests" */ = { 594 | isa = XCConfigurationList; 595 | buildConfigurations = ( 596 | 607FACF31AFB9204008FA782 /* Debug */, 597 | 607FACF41AFB9204008FA782 /* Release */, 598 | ); 599 | defaultConfigurationIsVisible = 0; 600 | defaultConfigurationName = Release; 601 | }; 602 | /* End XCConfigurationList section */ 603 | }; 604 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 605 | } 606 | --------------------------------------------------------------------------------