├── .swift-version
├── readme_img
├── Loop.png
├── water.gif
├── DownToTop.png
├── HeartBeat.gif
└── GrownCircle.png
├── ProgressRoundView.xcodeproj
├── xcuserdata
│ ├── waninuser.xcuserdatad
│ │ ├── xcdebugger
│ │ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ │ ├── xcschememanagement.plist
│ │ │ └── ProgressRoundView.xcscheme
│ └── JamesDouble.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── ProgressRoundView.xcscheme
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ ├── JamesDouble.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
│ │ └── waninuser.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
└── project.pbxproj
├── JDProgressRoundView.podspec
├── ProgressRoundView
├── ViewController.swift
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── AppDelegate.swift
└── JDProgressRoundView
│ ├── JDProgressRoundView.swift
│ ├── JDLayerClass.swift
│ └── JDLayerAnimation.swift
├── README.md
└── LICENSE
/.swift-version:
--------------------------------------------------------------------------------
1 | 3.1
2 |
--------------------------------------------------------------------------------
/readme_img/Loop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jamesdouble/JDProgressRoundView/HEAD/readme_img/Loop.png
--------------------------------------------------------------------------------
/readme_img/water.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jamesdouble/JDProgressRoundView/HEAD/readme_img/water.gif
--------------------------------------------------------------------------------
/readme_img/DownToTop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jamesdouble/JDProgressRoundView/HEAD/readme_img/DownToTop.png
--------------------------------------------------------------------------------
/readme_img/HeartBeat.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jamesdouble/JDProgressRoundView/HEAD/readme_img/HeartBeat.gif
--------------------------------------------------------------------------------
/readme_img/GrownCircle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jamesdouble/JDProgressRoundView/HEAD/readme_img/GrownCircle.png
--------------------------------------------------------------------------------
/ProgressRoundView.xcodeproj/xcuserdata/waninuser.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/ProgressRoundView.xcodeproj/xcuserdata/JamesDouble.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/ProgressRoundView.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ProgressRoundView.xcodeproj/project.xcworkspace/xcuserdata/JamesDouble.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jamesdouble/JDProgressRoundView/HEAD/ProgressRoundView.xcodeproj/project.xcworkspace/xcuserdata/JamesDouble.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/ProgressRoundView.xcodeproj/project.xcworkspace/xcuserdata/waninuser.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jamesdouble/JDProgressRoundView/HEAD/ProgressRoundView.xcodeproj/project.xcworkspace/xcuserdata/waninuser.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/JDProgressRoundView.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |s|
2 | s.name = 'JDProgressRoundView'
3 | s.version = '2.1.0'
4 | s.summary = 'Progress Meter'
5 | s.homepage = 'https://github.com/jamesdouble/JDProgressRoundView'
6 | s.license = { :type => 'Apache License 2.0', :file => 'LICENSE' }
7 | s.author = { 'JamesDouble' => 'jameskuo12345@gmail.com' }
8 | s.source = { :git => 'https://github.com/jamesdouble/JDProgressRoundView.git', :tag => s.version.to_s }
9 |
10 | s.ios.deployment_target = '10.0'
11 | s.source_files = 'ProgressRoundView/JDProgressRoundView/*'
12 |
13 | end
14 |
--------------------------------------------------------------------------------
/ProgressRoundView.xcodeproj/xcuserdata/JamesDouble.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ProgressRoundView.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 6B4D0F021DAC860700DD1A0D
16 |
17 | primary
18 |
19 |
20 | 6B4D0F161DAC860800DD1A0D
21 |
22 | primary
23 |
24 |
25 | 6B4D0F211DAC860800DD1A0D
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/ProgressRoundView.xcodeproj/xcuserdata/waninuser.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ProgressRoundView.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 6B4D0F021DAC860700DD1A0D
16 |
17 | primary
18 |
19 |
20 | 6B4D0F161DAC860800DD1A0D
21 |
22 | primary
23 |
24 |
25 | 6B4D0F211DAC860800DD1A0D
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/ProgressRoundView/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // ProgressRoundView
4 | //
5 | // Created by waninuser on 2016/10/11.
6 | // Copyright © 2016年 waninuser. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | @IBOutlet weak var JDView: UIView!
14 | var JD:JDProgressRoundView!
15 |
16 | override func viewDidLoad() {
17 | super.viewDidLoad()
18 | // Do any additional setup after loading the view, typically from a nib.
19 | JD = JDProgressRoundView(frame: JDView.frame, howtoincrease: .water)
20 | self.view.addSubview(JD)
21 | }
22 |
23 | @IBAction func changetype(_ sender: AnyObject) {
24 |
25 | }
26 |
27 |
28 | override func didReceiveMemoryWarning() {
29 | super.didReceiveMemoryWarning()
30 | // Dispose of any resources that can be recreated.
31 | }
32 |
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/ProgressRoundView/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 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/ProgressRoundView/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 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ProgressRoundView/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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # JDProgressRoundView
2 |
3 | ### Mutiple Display Style (types):
4 |
5 | `1 (.DownToTop)` ` 2 (.Loop)` `3. (.GrownCircle)`
6 |
7 |   
8 |
9 |
10 | ` 4(.Water)` `5(.HeartBeat)`
11 |
12 |  
13 |
14 | ***
15 | # Introduction
16 |
17 | JDProgressRoundView is Stylish Process Meter Based on UIProgressView.
18 | It growns 5% every tap, or you can just set the progress u want.
19 |
20 | Thanks for using.
21 |
22 | ***
23 | # Installation
24 | You can use cocoapods now.
25 |
26 | ```
27 | pod 'JDProgressRoundView'
28 |
29 | ```
30 | Or fork my repo & import the JDProgressRoundView Directory.
31 |
32 | ***
33 | # Usage
34 | ```Swift
35 | init(frame :CGRect)
36 | ```
37 | —> Default: types=(.DownToTop) color=(red)
38 | Example
39 | ```Swift
40 | JD:JDProgressRoundView = JDProgressRoundView(frame: self.view.frame)
41 | ```
42 | ---
43 | ```Swift
44 | init(frame: CGRect,howtoincrease t:types,unit u:String)
45 | ```
46 | —> Default: color=(red)
47 | Example
48 | ```Swift
49 | JD = JDProgressRoundView(frame: self.view.frame, howtoincrease: .Loop,unit: "%")
50 | ```
51 | ---
52 | ```Swift
53 | init (frame: CGRect,howtoincrease t:types,ProgressColor c:UIColor,BorderWidth b:CGFloat)
54 | ```
55 | Example
56 | ```Swift
57 | JD = JDProgressRoundView(frame: self.view.frame, howtoincrease: .Water,ProgressColor:UIColor.blue,BorderWidth:13.0)
58 | ```
59 |
60 | ### Method:
61 | ```Swift
62 | setProgress(p:CGFloat, animated: Bool) —> SetProgress Directly(Default maximun = 100.0)
63 |
64 | setTypes(change:types) —> Change Display Style above
65 | ```
66 |
--------------------------------------------------------------------------------
/ProgressRoundView/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // ProgressRoundView
4 | //
5 | // Created by waninuser on 2016/10/11.
6 | // Copyright © 2016年 waninuser. 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 invalidate graphics rendering callbacks. 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 active 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 |
--------------------------------------------------------------------------------
/ProgressRoundView/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 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/ProgressRoundView.xcodeproj/xcuserdata/waninuser.xcuserdatad/xcschemes/ProgressRoundView.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
43 |
49 |
50 |
51 |
52 |
53 |
59 |
60 |
61 |
62 |
63 |
64 |
74 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
95 |
101 |
102 |
103 |
104 |
106 |
107 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/ProgressRoundView.xcodeproj/xcuserdata/JamesDouble.xcuserdatad/xcschemes/ProgressRoundView.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
43 |
49 |
50 |
51 |
52 |
53 |
59 |
60 |
61 |
62 |
63 |
64 |
74 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
95 |
101 |
102 |
103 |
104 |
106 |
107 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/ProgressRoundView/JDProgressRoundView/JDProgressRoundView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JDProgressRoundView.swift
3 | // ProgressRoundView
4 | //
5 | // Created by waninuser on 2016/10/11.
6 | // Copyright © 2016年 waninuser. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | open class JDProgressRoundView:UIView{
12 |
13 | var InnerView:JDInnerView!
14 | var Border:JDRoundLayer!
15 |
16 | public init (frame: CGRect,howtoincrease t:types = .heartBeat,unit u:String = "",ProgressColor pc:UIColor = UIColor.red,BorderWidth b:CGFloat = 13.0) {
17 | super.init(frame: frame)
18 | //點擊事件
19 | let SingleTap:UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(JDProgressRoundView.TapView))
20 | self.addGestureRecognizer(SingleTap)
21 | //外筐
22 | Border = JDRoundLayer(LineWidth: b, theBounds: self.frame.size, Stroke_Color: UIColor.black.cgColor, percent: 100.0)
23 | layer.addSublayer(Border)
24 | //內進度
25 | InnerView = JDInnerView(frame: CGRect(origin: CGPoint.zero, size: self.frame.size), howtoincrease: t,ProgressColor: pc,UNIT : u)
26 | self.addSubview(InnerView)
27 | }
28 |
29 | public func setProgress(_ p:CGFloat, animated: Bool)
30 | {
31 | InnerView.progress = p - 5.0
32 | InnerView.JDHasBeenTap(animated)
33 | }
34 |
35 | public func setTypes(_ change:types)
36 | {
37 | InnerView.setTypes(change)
38 | }
39 |
40 | func TapView(){
41 | InnerView.JDHasBeenTap(true)
42 | }
43 |
44 | required public init?(coder aDecoder: NSCoder) {
45 | fatalError("init(coder:) has not been implemented")
46 | }
47 |
48 |
49 | }
50 |
51 |
52 |
53 | public enum types {
54 | case downToTop
55 | case loop
56 | case grownCircle
57 | case water
58 | case heartBeat
59 | }
60 |
61 |
62 | //包裝所有進度%相關
63 | class JDInnerView:UIView{
64 |
65 | var bgColor:UIColor!
66 | var UnitString:String = "%"
67 | var progress:CGFloat = 0.0
68 | var ProgressLabel:UILabel?
69 | var ProgressInnerLayer:JDLayerClass!
70 |
71 | init(frame: CGRect,howtoincrease type:types,ProgressColor color:UIColor,UNIT u:String){
72 | super.init(frame: frame)
73 | bgColor = color
74 | UnitString = u
75 | progress = 0.0
76 | self.DrawInnerLayer(IncreaseType: type)
77 | }
78 |
79 | func JDHasBeenTap(_ animated: Bool){
80 | progress += 5.0
81 | ProgressInnerLayer.JDHasBeenTap(animated, progress: progress)
82 | ProgressLabel?.text = " \(progress) %"
83 | if(progress == 100.0)
84 | {
85 | progress = -5.0
86 | }
87 |
88 | }
89 |
90 | func setTypes(_ change:types)
91 | {
92 | progress = 0.0
93 | DrawInnerLayer(IncreaseType: change)
94 | }
95 |
96 | /// 畫上裡面得圖層
97 | func DrawInnerLayer(IncreaseType:types){
98 | if(!(IncreaseType == .loop))
99 | {
100 | ProgressInnerLayer = JDInnerLayer(incresasetypes: IncreaseType, theBounds: self.frame.size, Stroke_Color: bgColor.cgColor, percent: progress)
101 | }
102 | else
103 | {
104 | ProgressInnerLayer = JDRoundLayer(LineWidth: 13.0, theBounds: self.frame.size, Stroke_Color: bgColor.cgColor, percent: 0.0)
105 | }
106 | layer.addSublayer(ProgressInnerLayer)
107 | if(IncreaseType == .heartBeat)
108 | {
109 | layer.addSublayer(ProgressInnerLayer.layeranimation.BeatingLayer)
110 | }
111 |
112 | //中間百分比
113 | ProgressLabel?.removeFromSuperview()
114 | let LabelFrame:CGRect = CGRect.zero
115 | ProgressLabel = UILabel(frame: LabelFrame)
116 | ProgressLabel?.translatesAutoresizingMaskIntoConstraints = false
117 | self.addSubview(ProgressLabel!)
118 | let width = NSLayoutConstraint(item: ProgressLabel!, attribute: .width, relatedBy: .equal, toItem: self, attribute: .width, multiplier: 0.6, constant: 0.0)
119 | let height = NSLayoutConstraint(item: ProgressLabel!, attribute: .height, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1.0, constant: 30.0)
120 | ProgressLabel?.addConstraint(height)
121 | let MidX = NSLayoutConstraint(item: ProgressLabel!, attribute: .centerX, relatedBy: .equal, toItem: self, attribute: .centerX, multiplier: 1.0, constant: 0.0)
122 | let Midy = NSLayoutConstraint(item: ProgressLabel!, attribute: .centerY, relatedBy: .equal, toItem: self, attribute: .centerY, multiplier: 1.0, constant: 0.0)
123 | self.addConstraints([width,MidX,Midy])
124 | ProgressLabel?.font = UIFont.systemFont(ofSize: 20, weight: UIFontWeightThin)
125 | ProgressLabel?.text = " \(progress) %"
126 | ProgressLabel?.textAlignment = .center
127 |
128 | }
129 |
130 | required init?(coder aDecoder: NSCoder) {
131 | fatalError("init(coder:) has not been implemented")
132 | }
133 | }
134 |
135 |
136 |
--------------------------------------------------------------------------------
/ProgressRoundView/JDProgressRoundView/JDLayerClass.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JDLayerClass.swift
3 | // ProgressRoundView
4 | //
5 | // Created by waninuser on 2016/10/18.
6 | // Copyright © 2016年 waninuser. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class JDLayerClass:CAShapeLayer
12 | {
13 | var InnerViewSize:CGSize!
14 | var layeranimation:JDLayerAnimation!
15 | var halfSize:CGFloat{
16 | get{
17 | return min( InnerViewSize.width/2, InnerViewSize.height/2)
18 | }
19 | }
20 |
21 | init(size:CGSize) {
22 | super.init()
23 | InnerViewSize = size
24 | layeranimation = JDLayerAnimation(innerlayer: self)
25 | }
26 |
27 | func resetToZeroPath()
28 | {
29 | if let round = self as? JDRoundLayer
30 | {
31 | round.path = round.getPath(0.0)
32 | }
33 | else if let inner = self as? JDInnerLayer
34 | {
35 | inner.path = inner.BezierPath.getPath(0.0)
36 | }
37 | }
38 |
39 | func JDHasBeenTap(_ animated: Bool,progress:CGFloat)
40 | {
41 | layeranimation.LayerGrowning(progress: progress)
42 | }
43 |
44 | required init?(coder aDecoder: NSCoder) {
45 | fatalError("init(coder:) has not been implemented")
46 | }
47 |
48 | fileprivate func DrawCircle(Stroke_Color:CGColor,percent:CGFloat)
49 | {
50 |
51 | }
52 |
53 | }
54 |
55 | //外面圓圈
56 | class JDRoundLayer:JDLayerClass
57 | {
58 | init(LineWidth w:CGFloat,theBounds:CGSize,Stroke_Color:CGColor,percent:CGFloat) {
59 | super.init(size: theBounds)
60 | self.lineCap = "kCALineCapRound"
61 | self.lineJoin = "kCALineJoinRound"
62 | self.lineWidth = w
63 | DrawCircle(Stroke_Color: Stroke_Color,percent: percent)
64 | }
65 |
66 | func getPath(_ percent:CGFloat) -> CGPath
67 | {
68 | let desiredLineWidth:CGFloat = self.lineWidth
69 | let circlePath = UIBezierPath(
70 | arcCenter: CGPoint(x:halfSize,y:halfSize),
71 | radius: CGFloat( halfSize - (desiredLineWidth/2) ),
72 | startAngle: CGFloat(Double.pi * 1.5),
73 | endAngle:CGFloat(Double.pi * 1.5) + CGFloat(Double.pi * 2) * percent/100 ,
74 | clockwise: true)
75 |
76 | circlePath.lineCapStyle = .round
77 | circlePath.lineJoinStyle = .round
78 | return circlePath.cgPath
79 | }
80 |
81 | override func DrawCircle(Stroke_Color:CGColor,percent:CGFloat){
82 | super.DrawCircle(Stroke_Color: Stroke_Color, percent: percent)
83 | let circlePath = getPath(percent)
84 | self.path = circlePath
85 | self.lineCap = "kCALineCapRound"
86 | self.lineJoin = "kCALineJoinRound"
87 | self.fillColor = UIColor.clear.cgColor
88 | self.strokeColor = Stroke_Color
89 | }
90 |
91 | required init?(coder aDecoder: NSCoder) {
92 | fatalError("init(coder:) has not been implemented")
93 | }
94 |
95 |
96 |
97 | }
98 |
99 |
100 | //裡面的圖層
101 | class JDInnerLayer:JDLayerClass{
102 | var isBeatingLayer:Bool = false
103 | var IncreaseType:types = .downToTop
104 | var BezierPath:JDBezierPathClass!
105 |
106 |
107 | init(incresasetypes types:types,theBounds:CGSize,Stroke_Color:CGColor,percent:CGFloat) {
108 | super.init(size: theBounds)
109 | IncreaseType = types
110 | BezierPath = JDBezierPathClass(type: IncreaseType, halfsize: self.halfSize,originalRect: InnerViewSize)
111 | if(types == .heartBeat)
112 | {
113 | layeranimation.BeatingLayer = JDInnerLayer(incresasetypes: .heartBeat, theBounds: theBounds, Stroke_Color: UIColor.red.cgColor, percent: percent * 1.1,isBeatingLayer: true)
114 | layeranimation.BeatingLayer.opacity = 0.0
115 | }
116 | DrawCircle(Stroke_Color: Stroke_Color,percent: percent)
117 |
118 | }
119 |
120 | //Beating Layer will use this.
121 | init(incresasetypes types:types,theBounds:CGSize,Stroke_Color:CGColor,percent:CGFloat,isBeatingLayer:Bool) {
122 | super.init(size: theBounds)
123 | IncreaseType = types
124 | self.isBeatingLayer = true
125 | BezierPath = JDBezierPathClass(type: IncreaseType, halfsize: self.halfSize,originalRect: InnerViewSize)
126 | DrawCircle(Stroke_Color: Stroke_Color,percent: percent)
127 | }
128 |
129 | //DrawCircle:: 才會使用到
130 | override func DrawCircle(Stroke_Color:CGColor,percent:CGFloat)
131 | {
132 | print(#function)
133 | let desiredLineWidth:CGFloat = 13
134 | let circlePath:CGPath = BezierPath.getPath(percent)
135 | self.path = circlePath
136 | self.fillColor = Stroke_Color
137 | self.strokeColor = UIColor.clear.cgColor
138 | self.lineWidth = desiredLineWidth
139 |
140 | if(IncreaseType == .water || IncreaseType == .heartBeat)
141 | {
142 | //遮罩
143 | let DownCircleMask:JDInnerLayer = JDInnerLayer(incresasetypes: .downToTop, theBounds: InnerViewSize, Stroke_Color: Stroke_Color, percent: 100.0)
144 | self.mask = DownCircleMask
145 | if(!isBeatingLayer)
146 | {
147 | tickAnimation(percent: percent)
148 | }
149 | }
150 | }
151 |
152 | func tickAnimation(percent:CGFloat){
153 | if(IncreaseType == .water)
154 | {
155 | layeranimation.WaterLayerAnimation(percent: percent)
156 | }
157 | if(IncreaseType == .heartBeat)
158 | {
159 | layeranimation.HeartBeatAnimation(percent: percent)
160 | }
161 | }
162 |
163 |
164 | required init?(coder aDecoder: NSCoder) {
165 | fatalError("init(coder:) has not been implemented")
166 | }
167 |
168 | }
169 |
--------------------------------------------------------------------------------
/ProgressRoundView/JDProgressRoundView/JDLayerAnimation.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JDLayerAnimation.swift
3 | // ProgressRoundView
4 | //
5 | // Created by waninuser on 2016/10/21.
6 | // Copyright © 2016年 waninuser. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class JDLayerAnimation{
12 |
13 | var animatedlayer:JDLayerClass!
14 | var timer:Timer!
15 | var BeatingLayer:JDInnerLayer!
16 |
17 | init(innerlayer:JDLayerClass) {
18 | animatedlayer = innerlayer
19 | }
20 | /*
21 | 所有Layer點擊都會到這func
22 | */
23 | func LayerGrowning(progress:CGFloat)
24 | {
25 |
26 | if(timer != nil)
27 | {
28 | timer.invalidate()
29 | }
30 | if(progress == 0.0)
31 | {
32 | animatedlayer.resetToZeroPath()
33 | return
34 | }
35 | else if(progress != 0.0)
36 | {
37 | if let roundlayer = animatedlayer as? JDRoundLayer
38 | {
39 | let a:CABasicAnimation = CABasicAnimation(keyPath: "path")
40 | a.duration = 1.0
41 | a.fromValue = roundlayer.path!
42 | a.toValue = roundlayer.getPath(progress)
43 | roundlayer.add(a, forKey: "path")
44 | roundlayer.path = roundlayer.getPath(progress)
45 | return
46 | }
47 | //
48 | guard let InnerLayer = animatedlayer as? JDInnerLayer else {
49 | fatalError()
50 | }
51 | let a:CABasicAnimation = CABasicAnimation(keyPath: "path")
52 | a.duration = 1.0
53 | a.fromValue = animatedlayer.path!
54 | let path = InnerLayer.BezierPath.getPath(progress)
55 | a.toValue = path
56 | animatedlayer.add(a, forKey: "path")
57 | animatedlayer.path = path
58 |
59 | if(InnerLayer.IncreaseType == .water)
60 | {
61 | self.WaterLayerAnimation(percent: progress)
62 | }
63 | else if(InnerLayer.IncreaseType == .heartBeat && !InnerLayer.isBeatingLayer)
64 | {
65 | JDLayerAnimation(innerlayer: BeatingLayer).LayerGrowning(progress: progress * 1.1)
66 | self.HeartBeatAnimation(percent: progress)
67 | }
68 | }
69 |
70 | }
71 |
72 |
73 | func WaterLayerAnimation(percent:CGFloat)
74 | {
75 | let desiredLineWidth:CGFloat = 13
76 | animatedlayer.lineWidth = desiredLineWidth
77 |
78 | timer = Timer(timeInterval: 0.06, repeats: true, block:
79 | {_ in
80 |
81 | guard let InnerLayer = self.animatedlayer as? JDInnerLayer
82 | else{
83 | fatalError()
84 | }
85 | OperationQueue.main.addOperation({
86 | let a:CABasicAnimation = CABasicAnimation(keyPath: "path")
87 | a.duration = 1.0
88 | a.fromValue = self.animatedlayer.path!
89 | let path = InnerLayer.BezierPath.getPath(percent)
90 | a.toValue = path
91 | self.animatedlayer.add(a, forKey: "path")
92 | self.animatedlayer.path = path
93 | })
94 | })
95 | RunLoop.main.add(timer!, forMode: .defaultRunLoopMode)
96 | }
97 |
98 | func HeartBeatAnimation(percent:CGFloat){
99 |
100 | guard let InnerLayer = animatedlayer as? JDInnerLayer,let beating = BeatingLayer else {
101 | fatalError()
102 | }
103 | timer = Timer(timeInterval: 1.5, repeats: true, block: {_ in
104 |
105 | let a:CABasicAnimation = CABasicAnimation(keyPath: "opacity")
106 | a.duration = 1.0
107 | a.fromValue = beating.opacity
108 | a.toValue = 0.5
109 | beating.add(a, forKey: "opacity")
110 |
111 | a.duration = 0.5
112 | a.fromValue = 0.5
113 | a.toValue = 0
114 | beating.add(a, forKey: "opacity")
115 | })
116 | RunLoop.main.add(timer!, forMode: .defaultRunLoopMode)
117 |
118 | }
119 |
120 |
121 |
122 | }
123 |
124 | class JDBezierPathClass{
125 |
126 | var IncreaseType:types = .downToTop
127 | var count:Int = 0 //for Water
128 | var halfsize:CGFloat!
129 | var originalRect:CGSize!
130 |
131 | init(type t:types,halfsize:CGFloat,originalRect:CGSize) {
132 | IncreaseType = t
133 | self.halfsize = halfsize
134 | self.originalRect = originalRect
135 | }
136 |
137 |
138 | func getPath(_ percent:CGFloat) -> CGPath{
139 |
140 | let desiredLineWidth:CGFloat = 13
141 |
142 | var r:CGFloat!
143 | var s:CGFloat!
144 | var e:CGFloat!
145 | var circlePath:UIBezierPath = UIBezierPath()
146 |
147 | if(IncreaseType == .downToTop)
148 | {
149 | r = CGFloat( halfsize - 2 * (desiredLineWidth/2) )
150 | s = CGFloat( CGFloat(Double.pi * 0.5) * (1 - percent/50))
151 | e = CGFloat( CGFloat(Double.pi * 0.5) * (1 + percent/50))
152 |
153 | circlePath = UIBezierPath(arcCenter: CGPoint(x:halfsize,y:halfsize),
154 | radius: r,
155 | startAngle: s,
156 | endAngle: e,
157 | clockwise: true)
158 | //circlePath.fill()
159 | return circlePath.cgPath
160 |
161 | }
162 | if(IncreaseType == .grownCircle )
163 | {
164 | r = CGFloat( (halfsize - 2 * (desiredLineWidth/2)) * percent/100.0 )
165 | s = CGFloat( 0 )
166 | e = CGFloat( CGFloat(Double.pi * 2) )
167 |
168 | circlePath = UIBezierPath(arcCenter: CGPoint(x:halfsize,y:halfsize),
169 | radius: r,
170 | startAngle: s,
171 | endAngle: e,
172 | clockwise: true)
173 | return circlePath.cgPath
174 | }
175 | if(IncreaseType == .water)
176 | {
177 | let centerY = halfsize * (100.0 - percent)/50
178 | let steps = 200 // Divide the curve into steps
179 | let stepX = (2 * halfsize - 2 * (desiredLineWidth/2))/CGFloat(steps) // find the horizontal step distance
180 | let path = UIBezierPath()
181 | path.move(to: CGPoint(x: 0, y: halfsize * 2 ))
182 | path.addLine(to: CGPoint(x: 0, y: centerY))
183 |
184 | for i in 0...steps {
185 | let x = CGFloat(i) * stepX
186 | let y = (sin(Double(i + self.count) * 0.04) * 8) + Double(centerY)
187 | path.addLine(to: CGPoint(x: x, y: CGFloat(y)))
188 | }
189 | path.addLine(to: CGPoint(x: 2 * halfsize, y: 2 * halfsize))
190 | path.close()
191 |
192 | if(self.count > 10000)
193 | {
194 | self.count = 0
195 | }
196 | self.count+=1
197 | return path.cgPath
198 | }
199 | if(IncreaseType == .heartBeat)
200 | {
201 | let scaledWidth = halfsize * 2 * (percent/100.0)
202 | let scaledXValue = halfsize * (1 - percent/100.0)
203 | let scaledHeight = halfsize * 2 * (percent/100.0)
204 | let scaledYValue = halfsize * (1 - percent/100.0) * 1.2
205 |
206 | let scaledRect = CGRect(x: scaledXValue, y: scaledYValue, width: scaledWidth, height: scaledHeight)
207 | circlePath.move(to: CGPoint(x: originalRect.width/2, y: scaledRect.origin.y + scaledRect.size.height))
208 |
209 | circlePath.addCurve(to: CGPoint(x: scaledRect.origin.x, y: scaledRect.origin.y + (scaledRect.size.height/4)),
210 | controlPoint1:CGPoint(x:scaledRect.origin.x + (scaledRect.size.width/2), y:scaledRect.origin.y + (scaledRect.size.height*3/4)) ,
211 | controlPoint2: CGPoint(x:scaledRect.origin.x,y: scaledRect.origin.y + (scaledRect.size.height/2)) )
212 |
213 |
214 |
215 | circlePath.addArc(withCenter: CGPoint(x:scaledRect.origin.x + (scaledRect.size.width/4),y:scaledRect.origin.y + (scaledRect.size.height/4)),
216 | radius: (scaledRect.size.width/4),
217 | startAngle: CGFloat(Double.pi),
218 | endAngle: 0,
219 | clockwise: true)
220 |
221 | circlePath.addArc(withCenter: CGPoint(x:scaledRect.origin.x + (scaledRect.size.width * 3/4),y:scaledRect.origin.y + (scaledRect.size.height/4)),
222 | radius: (scaledRect.size.width/4),
223 | startAngle: CGFloat(Double.pi),
224 | endAngle: 0,
225 | clockwise: true)
226 |
227 | circlePath.addCurve(to: CGPoint(x:originalRect.width/2,y: scaledRect.origin.y + scaledRect.size.height),
228 | controlPoint1: CGPoint(x:scaledRect.origin.x + scaledRect.size.width,y: scaledRect.origin.y + (scaledRect.size.height/2)),
229 | controlPoint2: CGPoint(x:scaledRect.origin.x + (scaledRect.size.width/2), y:scaledRect.origin.y + (scaledRect.size.height*3/4)) )
230 | circlePath.close()
231 | return circlePath.cgPath
232 | }
233 |
234 |
235 | r = CGFloat( halfsize - 2 * (desiredLineWidth/2) )
236 | s = CGFloat( CGFloat(Double.pi * 0.5) * (1 - percent/50))
237 | e = CGFloat( CGFloat(Double.pi * 0.5) * (1 + percent/50))
238 |
239 | circlePath = UIBezierPath(arcCenter: CGPoint(x:halfsize,y:halfsize),
240 | radius: r,
241 | startAngle: s,
242 | endAngle: e,
243 | clockwise: true)
244 | circlePath.fill()
245 | return circlePath.cgPath
246 | }
247 |
248 |
249 | }
250 |
251 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/ProgressRoundView.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 4F89ABFC1EE9740C002A680D /* JDLayerAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F89ABF71EE9740C002A680D /* JDLayerAnimation.swift */; };
11 | 4F89ABFD1EE9740C002A680D /* JDLayerClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F89ABF81EE9740C002A680D /* JDLayerClass.swift */; };
12 | 4F89ABFE1EE9740C002A680D /* JDProgressRoundView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F89ABF91EE9740C002A680D /* JDProgressRoundView.swift */; };
13 | 6B4D0F071DAC860800DD1A0D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6B4D0F061DAC860800DD1A0D /* AppDelegate.swift */; };
14 | 6B4D0F091DAC860800DD1A0D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6B4D0F081DAC860800DD1A0D /* ViewController.swift */; };
15 | 6B4D0F0C1DAC860800DD1A0D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6B4D0F0A1DAC860800DD1A0D /* Main.storyboard */; };
16 | 6B4D0F0E1DAC860800DD1A0D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6B4D0F0D1DAC860800DD1A0D /* Assets.xcassets */; };
17 | 6B4D0F111DAC860800DD1A0D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6B4D0F0F1DAC860800DD1A0D /* LaunchScreen.storyboard */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXContainerItemProxy section */
21 | 6B4D0F181DAC860800DD1A0D /* PBXContainerItemProxy */ = {
22 | isa = PBXContainerItemProxy;
23 | containerPortal = 6B4D0EFB1DAC860700DD1A0D /* Project object */;
24 | proxyType = 1;
25 | remoteGlobalIDString = 6B4D0F021DAC860700DD1A0D;
26 | remoteInfo = ProgressRoundView;
27 | };
28 | 6B4D0F231DAC860800DD1A0D /* PBXContainerItemProxy */ = {
29 | isa = PBXContainerItemProxy;
30 | containerPortal = 6B4D0EFB1DAC860700DD1A0D /* Project object */;
31 | proxyType = 1;
32 | remoteGlobalIDString = 6B4D0F021DAC860700DD1A0D;
33 | remoteInfo = ProgressRoundView;
34 | };
35 | /* End PBXContainerItemProxy section */
36 |
37 | /* Begin PBXFileReference section */
38 | 4F89ABF71EE9740C002A680D /* JDLayerAnimation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JDLayerAnimation.swift; path = JDProgressRoundView/JDLayerAnimation.swift; sourceTree = ""; };
39 | 4F89ABF81EE9740C002A680D /* JDLayerClass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JDLayerClass.swift; path = JDProgressRoundView/JDLayerClass.swift; sourceTree = ""; };
40 | 4F89ABF91EE9740C002A680D /* JDProgressRoundView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JDProgressRoundView.swift; path = JDProgressRoundView/JDProgressRoundView.swift; sourceTree = ""; };
41 | 6B4D0F031DAC860800DD1A0D /* ProgressRoundView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ProgressRoundView.app; sourceTree = BUILT_PRODUCTS_DIR; };
42 | 6B4D0F061DAC860800DD1A0D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
43 | 6B4D0F081DAC860800DD1A0D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
44 | 6B4D0F0B1DAC860800DD1A0D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 6B4D0F0D1DAC860800DD1A0D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 6B4D0F101DAC860800DD1A0D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 6B4D0F121DAC860800DD1A0D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | 6B4D0F171DAC860800DD1A0D /* ProgressRoundViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ProgressRoundViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
49 | 6B4D0F221DAC860800DD1A0D /* ProgressRoundViewUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ProgressRoundViewUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 6B4D0F001DAC860700DD1A0D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | );
58 | runOnlyForDeploymentPostprocessing = 0;
59 | };
60 | 6B4D0F141DAC860800DD1A0D /* Frameworks */ = {
61 | isa = PBXFrameworksBuildPhase;
62 | buildActionMask = 2147483647;
63 | files = (
64 | );
65 | runOnlyForDeploymentPostprocessing = 0;
66 | };
67 | 6B4D0F1F1DAC860800DD1A0D /* Frameworks */ = {
68 | isa = PBXFrameworksBuildPhase;
69 | buildActionMask = 2147483647;
70 | files = (
71 | );
72 | runOnlyForDeploymentPostprocessing = 0;
73 | };
74 | /* End PBXFrameworksBuildPhase section */
75 |
76 | /* Begin PBXGroup section */
77 | 4F89ABF41EE971AF002A680D /* JDProgressRoundView */ = {
78 | isa = PBXGroup;
79 | children = (
80 | 4F89ABF91EE9740C002A680D /* JDProgressRoundView.swift */,
81 | 4F89ABF71EE9740C002A680D /* JDLayerAnimation.swift */,
82 | 4F89ABF81EE9740C002A680D /* JDLayerClass.swift */,
83 | );
84 | name = JDProgressRoundView;
85 | sourceTree = "";
86 | };
87 | 6B4D0EFA1DAC860700DD1A0D = {
88 | isa = PBXGroup;
89 | children = (
90 | 6B4D0F051DAC860800DD1A0D /* ProgressRoundView */,
91 | 6B4D0F041DAC860800DD1A0D /* Products */,
92 | );
93 | sourceTree = "";
94 | };
95 | 6B4D0F041DAC860800DD1A0D /* Products */ = {
96 | isa = PBXGroup;
97 | children = (
98 | 6B4D0F031DAC860800DD1A0D /* ProgressRoundView.app */,
99 | 6B4D0F171DAC860800DD1A0D /* ProgressRoundViewTests.xctest */,
100 | 6B4D0F221DAC860800DD1A0D /* ProgressRoundViewUITests.xctest */,
101 | );
102 | name = Products;
103 | sourceTree = "";
104 | };
105 | 6B4D0F051DAC860800DD1A0D /* ProgressRoundView */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 4F89ABF41EE971AF002A680D /* JDProgressRoundView */,
109 | 6B4D0F061DAC860800DD1A0D /* AppDelegate.swift */,
110 | 6B4D0F081DAC860800DD1A0D /* ViewController.swift */,
111 | 6B4D0F0A1DAC860800DD1A0D /* Main.storyboard */,
112 | 6B4D0F0D1DAC860800DD1A0D /* Assets.xcassets */,
113 | 6B4D0F0F1DAC860800DD1A0D /* LaunchScreen.storyboard */,
114 | 6B4D0F121DAC860800DD1A0D /* Info.plist */,
115 | );
116 | path = ProgressRoundView;
117 | sourceTree = "";
118 | };
119 | /* End PBXGroup section */
120 |
121 | /* Begin PBXNativeTarget section */
122 | 6B4D0F021DAC860700DD1A0D /* ProgressRoundView */ = {
123 | isa = PBXNativeTarget;
124 | buildConfigurationList = 6B4D0F2B1DAC860800DD1A0D /* Build configuration list for PBXNativeTarget "ProgressRoundView" */;
125 | buildPhases = (
126 | 6B4D0EFF1DAC860700DD1A0D /* Sources */,
127 | 6B4D0F001DAC860700DD1A0D /* Frameworks */,
128 | 6B4D0F011DAC860700DD1A0D /* Resources */,
129 | );
130 | buildRules = (
131 | );
132 | dependencies = (
133 | );
134 | name = ProgressRoundView;
135 | productName = ProgressRoundView;
136 | productReference = 6B4D0F031DAC860800DD1A0D /* ProgressRoundView.app */;
137 | productType = "com.apple.product-type.application";
138 | };
139 | 6B4D0F161DAC860800DD1A0D /* ProgressRoundViewTests */ = {
140 | isa = PBXNativeTarget;
141 | buildConfigurationList = 6B4D0F2E1DAC860800DD1A0D /* Build configuration list for PBXNativeTarget "ProgressRoundViewTests" */;
142 | buildPhases = (
143 | 6B4D0F131DAC860800DD1A0D /* Sources */,
144 | 6B4D0F141DAC860800DD1A0D /* Frameworks */,
145 | 6B4D0F151DAC860800DD1A0D /* Resources */,
146 | );
147 | buildRules = (
148 | );
149 | dependencies = (
150 | 6B4D0F191DAC860800DD1A0D /* PBXTargetDependency */,
151 | );
152 | name = ProgressRoundViewTests;
153 | productName = ProgressRoundViewTests;
154 | productReference = 6B4D0F171DAC860800DD1A0D /* ProgressRoundViewTests.xctest */;
155 | productType = "com.apple.product-type.bundle.unit-test";
156 | };
157 | 6B4D0F211DAC860800DD1A0D /* ProgressRoundViewUITests */ = {
158 | isa = PBXNativeTarget;
159 | buildConfigurationList = 6B4D0F311DAC860800DD1A0D /* Build configuration list for PBXNativeTarget "ProgressRoundViewUITests" */;
160 | buildPhases = (
161 | 6B4D0F1E1DAC860800DD1A0D /* Sources */,
162 | 6B4D0F1F1DAC860800DD1A0D /* Frameworks */,
163 | 6B4D0F201DAC860800DD1A0D /* Resources */,
164 | );
165 | buildRules = (
166 | );
167 | dependencies = (
168 | 6B4D0F241DAC860800DD1A0D /* PBXTargetDependency */,
169 | );
170 | name = ProgressRoundViewUITests;
171 | productName = ProgressRoundViewUITests;
172 | productReference = 6B4D0F221DAC860800DD1A0D /* ProgressRoundViewUITests.xctest */;
173 | productType = "com.apple.product-type.bundle.ui-testing";
174 | };
175 | /* End PBXNativeTarget section */
176 |
177 | /* Begin PBXProject section */
178 | 6B4D0EFB1DAC860700DD1A0D /* Project object */ = {
179 | isa = PBXProject;
180 | attributes = {
181 | LastSwiftUpdateCheck = 0800;
182 | LastUpgradeCheck = 0830;
183 | ORGANIZATIONNAME = waninuser;
184 | TargetAttributes = {
185 | 6B4D0F021DAC860700DD1A0D = {
186 | CreatedOnToolsVersion = 8.0;
187 | LastSwiftMigration = 0830;
188 | ProvisioningStyle = Automatic;
189 | };
190 | 6B4D0F161DAC860800DD1A0D = {
191 | CreatedOnToolsVersion = 8.0;
192 | LastSwiftMigration = 0830;
193 | ProvisioningStyle = Automatic;
194 | TestTargetID = 6B4D0F021DAC860700DD1A0D;
195 | };
196 | 6B4D0F211DAC860800DD1A0D = {
197 | CreatedOnToolsVersion = 8.0;
198 | LastSwiftMigration = 0830;
199 | ProvisioningStyle = Automatic;
200 | TestTargetID = 6B4D0F021DAC860700DD1A0D;
201 | };
202 | };
203 | };
204 | buildConfigurationList = 6B4D0EFE1DAC860700DD1A0D /* Build configuration list for PBXProject "ProgressRoundView" */;
205 | compatibilityVersion = "Xcode 3.2";
206 | developmentRegion = English;
207 | hasScannedForEncodings = 0;
208 | knownRegions = (
209 | en,
210 | Base,
211 | );
212 | mainGroup = 6B4D0EFA1DAC860700DD1A0D;
213 | productRefGroup = 6B4D0F041DAC860800DD1A0D /* Products */;
214 | projectDirPath = "";
215 | projectRoot = "";
216 | targets = (
217 | 6B4D0F021DAC860700DD1A0D /* ProgressRoundView */,
218 | 6B4D0F161DAC860800DD1A0D /* ProgressRoundViewTests */,
219 | 6B4D0F211DAC860800DD1A0D /* ProgressRoundViewUITests */,
220 | );
221 | };
222 | /* End PBXProject section */
223 |
224 | /* Begin PBXResourcesBuildPhase section */
225 | 6B4D0F011DAC860700DD1A0D /* Resources */ = {
226 | isa = PBXResourcesBuildPhase;
227 | buildActionMask = 2147483647;
228 | files = (
229 | 6B4D0F111DAC860800DD1A0D /* LaunchScreen.storyboard in Resources */,
230 | 6B4D0F0E1DAC860800DD1A0D /* Assets.xcassets in Resources */,
231 | 6B4D0F0C1DAC860800DD1A0D /* Main.storyboard in Resources */,
232 | );
233 | runOnlyForDeploymentPostprocessing = 0;
234 | };
235 | 6B4D0F151DAC860800DD1A0D /* Resources */ = {
236 | isa = PBXResourcesBuildPhase;
237 | buildActionMask = 2147483647;
238 | files = (
239 | );
240 | runOnlyForDeploymentPostprocessing = 0;
241 | };
242 | 6B4D0F201DAC860800DD1A0D /* Resources */ = {
243 | isa = PBXResourcesBuildPhase;
244 | buildActionMask = 2147483647;
245 | files = (
246 | );
247 | runOnlyForDeploymentPostprocessing = 0;
248 | };
249 | /* End PBXResourcesBuildPhase section */
250 |
251 | /* Begin PBXSourcesBuildPhase section */
252 | 6B4D0EFF1DAC860700DD1A0D /* Sources */ = {
253 | isa = PBXSourcesBuildPhase;
254 | buildActionMask = 2147483647;
255 | files = (
256 | 4F89ABFD1EE9740C002A680D /* JDLayerClass.swift in Sources */,
257 | 6B4D0F091DAC860800DD1A0D /* ViewController.swift in Sources */,
258 | 4F89ABFC1EE9740C002A680D /* JDLayerAnimation.swift in Sources */,
259 | 4F89ABFE1EE9740C002A680D /* JDProgressRoundView.swift in Sources */,
260 | 6B4D0F071DAC860800DD1A0D /* AppDelegate.swift in Sources */,
261 | );
262 | runOnlyForDeploymentPostprocessing = 0;
263 | };
264 | 6B4D0F131DAC860800DD1A0D /* Sources */ = {
265 | isa = PBXSourcesBuildPhase;
266 | buildActionMask = 2147483647;
267 | files = (
268 | );
269 | runOnlyForDeploymentPostprocessing = 0;
270 | };
271 | 6B4D0F1E1DAC860800DD1A0D /* Sources */ = {
272 | isa = PBXSourcesBuildPhase;
273 | buildActionMask = 2147483647;
274 | files = (
275 | );
276 | runOnlyForDeploymentPostprocessing = 0;
277 | };
278 | /* End PBXSourcesBuildPhase section */
279 |
280 | /* Begin PBXTargetDependency section */
281 | 6B4D0F191DAC860800DD1A0D /* PBXTargetDependency */ = {
282 | isa = PBXTargetDependency;
283 | target = 6B4D0F021DAC860700DD1A0D /* ProgressRoundView */;
284 | targetProxy = 6B4D0F181DAC860800DD1A0D /* PBXContainerItemProxy */;
285 | };
286 | 6B4D0F241DAC860800DD1A0D /* PBXTargetDependency */ = {
287 | isa = PBXTargetDependency;
288 | target = 6B4D0F021DAC860700DD1A0D /* ProgressRoundView */;
289 | targetProxy = 6B4D0F231DAC860800DD1A0D /* PBXContainerItemProxy */;
290 | };
291 | /* End PBXTargetDependency section */
292 |
293 | /* Begin PBXVariantGroup section */
294 | 6B4D0F0A1DAC860800DD1A0D /* Main.storyboard */ = {
295 | isa = PBXVariantGroup;
296 | children = (
297 | 6B4D0F0B1DAC860800DD1A0D /* Base */,
298 | );
299 | name = Main.storyboard;
300 | sourceTree = "";
301 | };
302 | 6B4D0F0F1DAC860800DD1A0D /* LaunchScreen.storyboard */ = {
303 | isa = PBXVariantGroup;
304 | children = (
305 | 6B4D0F101DAC860800DD1A0D /* Base */,
306 | );
307 | name = LaunchScreen.storyboard;
308 | sourceTree = "";
309 | };
310 | /* End PBXVariantGroup section */
311 |
312 | /* Begin XCBuildConfiguration section */
313 | 6B4D0F291DAC860800DD1A0D /* Debug */ = {
314 | isa = XCBuildConfiguration;
315 | buildSettings = {
316 | ALWAYS_SEARCH_USER_PATHS = NO;
317 | CLANG_ANALYZER_NONNULL = YES;
318 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
319 | CLANG_CXX_LIBRARY = "libc++";
320 | CLANG_ENABLE_MODULES = YES;
321 | CLANG_ENABLE_OBJC_ARC = YES;
322 | CLANG_WARN_BOOL_CONVERSION = YES;
323 | CLANG_WARN_CONSTANT_CONVERSION = YES;
324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
325 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
326 | CLANG_WARN_EMPTY_BODY = YES;
327 | CLANG_WARN_ENUM_CONVERSION = YES;
328 | CLANG_WARN_INFINITE_RECURSION = YES;
329 | CLANG_WARN_INT_CONVERSION = YES;
330 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
331 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
332 | CLANG_WARN_SUSPICIOUS_MOVES = YES;
333 | CLANG_WARN_UNREACHABLE_CODE = YES;
334 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
335 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
336 | COPY_PHASE_STRIP = NO;
337 | DEBUG_INFORMATION_FORMAT = dwarf;
338 | ENABLE_STRICT_OBJC_MSGSEND = YES;
339 | ENABLE_TESTABILITY = YES;
340 | GCC_C_LANGUAGE_STANDARD = gnu99;
341 | GCC_DYNAMIC_NO_PIC = NO;
342 | GCC_NO_COMMON_BLOCKS = YES;
343 | GCC_OPTIMIZATION_LEVEL = 0;
344 | GCC_PREPROCESSOR_DEFINITIONS = (
345 | "DEBUG=1",
346 | "$(inherited)",
347 | );
348 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
349 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
350 | GCC_WARN_UNDECLARED_SELECTOR = YES;
351 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
352 | GCC_WARN_UNUSED_FUNCTION = YES;
353 | GCC_WARN_UNUSED_VARIABLE = YES;
354 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
355 | MTL_ENABLE_DEBUG_INFO = YES;
356 | ONLY_ACTIVE_ARCH = YES;
357 | SDKROOT = iphoneos;
358 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
359 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
360 | TARGETED_DEVICE_FAMILY = "1,2";
361 | };
362 | name = Debug;
363 | };
364 | 6B4D0F2A1DAC860800DD1A0D /* Release */ = {
365 | isa = XCBuildConfiguration;
366 | buildSettings = {
367 | ALWAYS_SEARCH_USER_PATHS = NO;
368 | CLANG_ANALYZER_NONNULL = YES;
369 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
370 | CLANG_CXX_LIBRARY = "libc++";
371 | CLANG_ENABLE_MODULES = YES;
372 | CLANG_ENABLE_OBJC_ARC = YES;
373 | CLANG_WARN_BOOL_CONVERSION = YES;
374 | CLANG_WARN_CONSTANT_CONVERSION = YES;
375 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
376 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
377 | CLANG_WARN_EMPTY_BODY = YES;
378 | CLANG_WARN_ENUM_CONVERSION = YES;
379 | CLANG_WARN_INFINITE_RECURSION = YES;
380 | CLANG_WARN_INT_CONVERSION = YES;
381 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
382 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
383 | CLANG_WARN_SUSPICIOUS_MOVES = YES;
384 | CLANG_WARN_UNREACHABLE_CODE = YES;
385 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
386 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
387 | COPY_PHASE_STRIP = NO;
388 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
389 | ENABLE_NS_ASSERTIONS = NO;
390 | ENABLE_STRICT_OBJC_MSGSEND = YES;
391 | GCC_C_LANGUAGE_STANDARD = gnu99;
392 | GCC_NO_COMMON_BLOCKS = YES;
393 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
394 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
395 | GCC_WARN_UNDECLARED_SELECTOR = YES;
396 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
397 | GCC_WARN_UNUSED_FUNCTION = YES;
398 | GCC_WARN_UNUSED_VARIABLE = YES;
399 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
400 | MTL_ENABLE_DEBUG_INFO = NO;
401 | SDKROOT = iphoneos;
402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
403 | TARGETED_DEVICE_FAMILY = "1,2";
404 | VALIDATE_PRODUCT = YES;
405 | };
406 | name = Release;
407 | };
408 | 6B4D0F2C1DAC860800DD1A0D /* Debug */ = {
409 | isa = XCBuildConfiguration;
410 | buildSettings = {
411 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
412 | INFOPLIST_FILE = ProgressRoundView/Info.plist;
413 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
414 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
415 | PRODUCT_BUNDLE_IDENTIFIER = com.ProgressRoundView;
416 | PRODUCT_NAME = "$(TARGET_NAME)";
417 | SWIFT_VERSION = 3.0;
418 | };
419 | name = Debug;
420 | };
421 | 6B4D0F2D1DAC860800DD1A0D /* Release */ = {
422 | isa = XCBuildConfiguration;
423 | buildSettings = {
424 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
425 | INFOPLIST_FILE = ProgressRoundView/Info.plist;
426 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
427 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
428 | PRODUCT_BUNDLE_IDENTIFIER = com.ProgressRoundView;
429 | PRODUCT_NAME = "$(TARGET_NAME)";
430 | SWIFT_VERSION = 3.0;
431 | };
432 | name = Release;
433 | };
434 | 6B4D0F2F1DAC860800DD1A0D /* Debug */ = {
435 | isa = XCBuildConfiguration;
436 | buildSettings = {
437 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
438 | BUNDLE_LOADER = "$(TEST_HOST)";
439 | INFOPLIST_FILE = ProgressRoundViewTests/Info.plist;
440 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
441 | PRODUCT_BUNDLE_IDENTIFIER = com.ProgressRoundViewTests;
442 | PRODUCT_NAME = "$(TARGET_NAME)";
443 | SWIFT_VERSION = 3.0;
444 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ProgressRoundView.app/ProgressRoundView";
445 | };
446 | name = Debug;
447 | };
448 | 6B4D0F301DAC860800DD1A0D /* Release */ = {
449 | isa = XCBuildConfiguration;
450 | buildSettings = {
451 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
452 | BUNDLE_LOADER = "$(TEST_HOST)";
453 | INFOPLIST_FILE = ProgressRoundViewTests/Info.plist;
454 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
455 | PRODUCT_BUNDLE_IDENTIFIER = com.ProgressRoundViewTests;
456 | PRODUCT_NAME = "$(TARGET_NAME)";
457 | SWIFT_VERSION = 3.0;
458 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ProgressRoundView.app/ProgressRoundView";
459 | };
460 | name = Release;
461 | };
462 | 6B4D0F321DAC860800DD1A0D /* Debug */ = {
463 | isa = XCBuildConfiguration;
464 | buildSettings = {
465 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
466 | INFOPLIST_FILE = ProgressRoundViewUITests/Info.plist;
467 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
468 | PRODUCT_BUNDLE_IDENTIFIER = com.ProgressRoundViewUITests;
469 | PRODUCT_NAME = "$(TARGET_NAME)";
470 | SWIFT_VERSION = 3.0;
471 | TEST_TARGET_NAME = ProgressRoundView;
472 | };
473 | name = Debug;
474 | };
475 | 6B4D0F331DAC860800DD1A0D /* Release */ = {
476 | isa = XCBuildConfiguration;
477 | buildSettings = {
478 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
479 | INFOPLIST_FILE = ProgressRoundViewUITests/Info.plist;
480 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
481 | PRODUCT_BUNDLE_IDENTIFIER = com.ProgressRoundViewUITests;
482 | PRODUCT_NAME = "$(TARGET_NAME)";
483 | SWIFT_VERSION = 3.0;
484 | TEST_TARGET_NAME = ProgressRoundView;
485 | };
486 | name = Release;
487 | };
488 | /* End XCBuildConfiguration section */
489 |
490 | /* Begin XCConfigurationList section */
491 | 6B4D0EFE1DAC860700DD1A0D /* Build configuration list for PBXProject "ProgressRoundView" */ = {
492 | isa = XCConfigurationList;
493 | buildConfigurations = (
494 | 6B4D0F291DAC860800DD1A0D /* Debug */,
495 | 6B4D0F2A1DAC860800DD1A0D /* Release */,
496 | );
497 | defaultConfigurationIsVisible = 0;
498 | defaultConfigurationName = Release;
499 | };
500 | 6B4D0F2B1DAC860800DD1A0D /* Build configuration list for PBXNativeTarget "ProgressRoundView" */ = {
501 | isa = XCConfigurationList;
502 | buildConfigurations = (
503 | 6B4D0F2C1DAC860800DD1A0D /* Debug */,
504 | 6B4D0F2D1DAC860800DD1A0D /* Release */,
505 | );
506 | defaultConfigurationIsVisible = 0;
507 | defaultConfigurationName = Release;
508 | };
509 | 6B4D0F2E1DAC860800DD1A0D /* Build configuration list for PBXNativeTarget "ProgressRoundViewTests" */ = {
510 | isa = XCConfigurationList;
511 | buildConfigurations = (
512 | 6B4D0F2F1DAC860800DD1A0D /* Debug */,
513 | 6B4D0F301DAC860800DD1A0D /* Release */,
514 | );
515 | defaultConfigurationIsVisible = 0;
516 | defaultConfigurationName = Release;
517 | };
518 | 6B4D0F311DAC860800DD1A0D /* Build configuration list for PBXNativeTarget "ProgressRoundViewUITests" */ = {
519 | isa = XCConfigurationList;
520 | buildConfigurations = (
521 | 6B4D0F321DAC860800DD1A0D /* Debug */,
522 | 6B4D0F331DAC860800DD1A0D /* Release */,
523 | );
524 | defaultConfigurationIsVisible = 0;
525 | defaultConfigurationName = Release;
526 | };
527 | /* End XCConfigurationList section */
528 | };
529 | rootObject = 6B4D0EFB1DAC860700DD1A0D /* Project object */;
530 | }
531 |
--------------------------------------------------------------------------------