├── CircularProgressView-Tutorial.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
├── xcuserdata
│ └── amanaggarwal.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
└── project.pbxproj
└── CircularProgressView-Tutorial
├── ViewController.swift
├── Info.plist
├── Base.lproj
├── LaunchScreen.storyboard
└── Main.storyboard
├── Assets.xcassets
└── AppIcon.appiconset
│ └── Contents.json
├── AppDelegate.swift
└── CircularProgressView.swift
/CircularProgressView-Tutorial.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CircularProgressView-Tutorial.xcodeproj/xcuserdata/amanaggarwal.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | CircularProgressView-Tutorial.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/CircularProgressView-Tutorial/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // CircularProgressView-Tutorial
4 | //
5 | // Created by Aman Aggarwal on 20/05/18.
6 | // Copyright © 2018 Aman Aggarwal. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | @IBOutlet weak var CircularProgress: CircularProgressView!
14 |
15 | override func viewDidLoad() {
16 | super.viewDidLoad()
17 | // Do any additional setup after loading the view, typically from a nib.
18 |
19 | let cp = CircularProgressView(frame: CGRect(x: 10.0, y: 10.0, width: 100.0, height: 100.0))
20 | cp.trackColor = UIColor.white
21 | cp.progressColor = UIColor(red: 252.0/255.0, green: 141.0/255.0, blue: 165.0/255.0, alpha: 1.0)
22 | cp.tag = 101
23 | self.view.addSubview(cp)
24 | cp.center = self.view.center
25 |
26 | self.perform(#selector(animateProgress), with: nil, afterDelay: 2.0)
27 |
28 | CircularProgress.trackColor = UIColor.white
29 | CircularProgress.progressColor = UIColor.purple
30 | CircularProgress.setProgressWithAnimation(duration: 1.0, value: 0.3)
31 | }
32 |
33 | @objc func animateProgress() {
34 | let cP = self.view.viewWithTag(101) as! CircularProgressView
35 | cP.setProgressWithAnimation(duration: 1.0, value: 0.7)
36 |
37 | }
38 | override func didReceiveMemoryWarning() {
39 | super.didReceiveMemoryWarning()
40 | // Dispose of any resources that can be recreated.
41 | }
42 |
43 |
44 | }
45 |
46 |
--------------------------------------------------------------------------------
/CircularProgressView-Tutorial/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
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 |
--------------------------------------------------------------------------------
/CircularProgressView-Tutorial/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 |
--------------------------------------------------------------------------------
/CircularProgressView-Tutorial/Assets.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 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/CircularProgressView-Tutorial/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // CircularProgressView-Tutorial
4 | //
5 | // Created by Aman Aggarwal on 20/05/18.
6 | // Copyright © 2018 Aman Aggarwal. 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 |
--------------------------------------------------------------------------------
/CircularProgressView-Tutorial/CircularProgressView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // CircularProgressView.swift
3 | // CircularProgressView-Tutorial
4 | //
5 | // Created by Aman Aggarwal on 20/05/18.
6 | // Copyright © 2018 Aman Aggarwal. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class CircularProgressView: UIView {
12 |
13 | fileprivate var progressLayer = CAShapeLayer()
14 | fileprivate var trackLayer = CAShapeLayer()
15 |
16 | /*
17 | // Only override draw() if you perform custom drawing.
18 | // An empty implementation adversely affects performance during animation.
19 | override func draw(_ rect: CGRect) {
20 | // Drawing code
21 | }
22 | */
23 |
24 | override init(frame: CGRect) {
25 | super.init(frame: frame)
26 | createCircularPath()
27 | }
28 |
29 | required init?(coder aDecoder: NSCoder) {
30 | super.init(coder: aDecoder)
31 | createCircularPath()
32 | }
33 |
34 | var progressColor = UIColor.white {
35 | didSet {
36 | progressLayer.strokeColor = progressColor.cgColor
37 | }
38 | }
39 |
40 | var trackColor = UIColor.white {
41 | didSet {
42 | trackLayer.strokeColor = trackColor.cgColor
43 | }
44 | }
45 |
46 | fileprivate func createCircularPath() {
47 | self.backgroundColor = UIColor.clear
48 | self.layer.cornerRadius = self.frame.size.width/2
49 | let circlePath = UIBezierPath(arcCenter: CGPoint(x: frame.size.width/2, y: frame.size.height/2), radius: (frame.size.width - 1.5)/2, startAngle: CGFloat(-0.5 * .pi), endAngle: CGFloat(1.5 * .pi), clockwise: true)
50 | trackLayer.path = circlePath.cgPath
51 | trackLayer.fillColor = UIColor.clear.cgColor
52 | trackLayer.strokeColor = trackColor.cgColor
53 | trackLayer.lineWidth = 10.0
54 | trackLayer.strokeEnd = 1.0
55 | layer.addSublayer(trackLayer)
56 |
57 | progressLayer.path = circlePath.cgPath
58 | progressLayer.fillColor = UIColor.clear.cgColor
59 | progressLayer.strokeColor = progressColor.cgColor
60 | progressLayer.lineWidth = 10.0
61 | progressLayer.strokeEnd = 0.0
62 | layer.addSublayer(progressLayer)
63 | }
64 |
65 | func setProgressWithAnimation(duration: TimeInterval, value: Float) {
66 | let animation = CABasicAnimation(keyPath: "strokeEnd")
67 | animation.duration = duration
68 | animation.fromValue = 0
69 | animation.toValue = value
70 | animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
71 | progressLayer.strokeEnd = CGFloat(value)
72 | progressLayer.add(animation, forKey: "animateprogress")
73 | }
74 |
75 |
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/CircularProgressView-Tutorial/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/CircularProgressView-Tutorial.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 48;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | DC34735020B15562007396D3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC34734F20B15562007396D3 /* AppDelegate.swift */; };
11 | DC34735220B15562007396D3 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC34735120B15562007396D3 /* ViewController.swift */; };
12 | DC34735520B15562007396D3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DC34735320B15562007396D3 /* Main.storyboard */; };
13 | DC34735720B15562007396D3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DC34735620B15562007396D3 /* Assets.xcassets */; };
14 | DC34735A20B15562007396D3 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DC34735820B15562007396D3 /* LaunchScreen.storyboard */; };
15 | DC34736220B155C0007396D3 /* CircularProgressView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC34736120B155C0007396D3 /* CircularProgressView.swift */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXFileReference section */
19 | DC34734C20B15562007396D3 /* CircularProgressView-Tutorial.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CircularProgressView-Tutorial.app"; sourceTree = BUILT_PRODUCTS_DIR; };
20 | DC34734F20B15562007396D3 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
21 | DC34735120B15562007396D3 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
22 | DC34735420B15562007396D3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
23 | DC34735620B15562007396D3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
24 | DC34735920B15562007396D3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
25 | DC34735B20B15562007396D3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
26 | DC34736120B155C0007396D3 /* CircularProgressView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CircularProgressView.swift; sourceTree = ""; };
27 | /* End PBXFileReference section */
28 |
29 | /* Begin PBXFrameworksBuildPhase section */
30 | DC34734920B15562007396D3 /* Frameworks */ = {
31 | isa = PBXFrameworksBuildPhase;
32 | buildActionMask = 2147483647;
33 | files = (
34 | );
35 | runOnlyForDeploymentPostprocessing = 0;
36 | };
37 | /* End PBXFrameworksBuildPhase section */
38 |
39 | /* Begin PBXGroup section */
40 | DC34734320B15562007396D3 = {
41 | isa = PBXGroup;
42 | children = (
43 | DC34734E20B15562007396D3 /* CircularProgressView-Tutorial */,
44 | DC34734D20B15562007396D3 /* Products */,
45 | );
46 | sourceTree = "";
47 | };
48 | DC34734D20B15562007396D3 /* Products */ = {
49 | isa = PBXGroup;
50 | children = (
51 | DC34734C20B15562007396D3 /* CircularProgressView-Tutorial.app */,
52 | );
53 | name = Products;
54 | sourceTree = "";
55 | };
56 | DC34734E20B15562007396D3 /* CircularProgressView-Tutorial */ = {
57 | isa = PBXGroup;
58 | children = (
59 | DC34734F20B15562007396D3 /* AppDelegate.swift */,
60 | DC34735120B15562007396D3 /* ViewController.swift */,
61 | DC34736120B155C0007396D3 /* CircularProgressView.swift */,
62 | DC34735320B15562007396D3 /* Main.storyboard */,
63 | DC34735620B15562007396D3 /* Assets.xcassets */,
64 | DC34735820B15562007396D3 /* LaunchScreen.storyboard */,
65 | DC34735B20B15562007396D3 /* Info.plist */,
66 | );
67 | path = "CircularProgressView-Tutorial";
68 | sourceTree = "";
69 | };
70 | /* End PBXGroup section */
71 |
72 | /* Begin PBXNativeTarget section */
73 | DC34734B20B15562007396D3 /* CircularProgressView-Tutorial */ = {
74 | isa = PBXNativeTarget;
75 | buildConfigurationList = DC34735E20B15562007396D3 /* Build configuration list for PBXNativeTarget "CircularProgressView-Tutorial" */;
76 | buildPhases = (
77 | DC34734820B15562007396D3 /* Sources */,
78 | DC34734920B15562007396D3 /* Frameworks */,
79 | DC34734A20B15562007396D3 /* Resources */,
80 | );
81 | buildRules = (
82 | );
83 | dependencies = (
84 | );
85 | name = "CircularProgressView-Tutorial";
86 | productName = "CircularProgressView-Tutorial";
87 | productReference = DC34734C20B15562007396D3 /* CircularProgressView-Tutorial.app */;
88 | productType = "com.apple.product-type.application";
89 | };
90 | /* End PBXNativeTarget section */
91 |
92 | /* Begin PBXProject section */
93 | DC34734420B15562007396D3 /* Project object */ = {
94 | isa = PBXProject;
95 | attributes = {
96 | LastSwiftUpdateCheck = 0920;
97 | LastUpgradeCheck = 0920;
98 | ORGANIZATIONNAME = "Aman Aggarwal";
99 | TargetAttributes = {
100 | DC34734B20B15562007396D3 = {
101 | CreatedOnToolsVersion = 9.2;
102 | ProvisioningStyle = Manual;
103 | };
104 | };
105 | };
106 | buildConfigurationList = DC34734720B15562007396D3 /* Build configuration list for PBXProject "CircularProgressView-Tutorial" */;
107 | compatibilityVersion = "Xcode 8.0";
108 | developmentRegion = en;
109 | hasScannedForEncodings = 0;
110 | knownRegions = (
111 | en,
112 | Base,
113 | );
114 | mainGroup = DC34734320B15562007396D3;
115 | productRefGroup = DC34734D20B15562007396D3 /* Products */;
116 | projectDirPath = "";
117 | projectRoot = "";
118 | targets = (
119 | DC34734B20B15562007396D3 /* CircularProgressView-Tutorial */,
120 | );
121 | };
122 | /* End PBXProject section */
123 |
124 | /* Begin PBXResourcesBuildPhase section */
125 | DC34734A20B15562007396D3 /* Resources */ = {
126 | isa = PBXResourcesBuildPhase;
127 | buildActionMask = 2147483647;
128 | files = (
129 | DC34735A20B15562007396D3 /* LaunchScreen.storyboard in Resources */,
130 | DC34735720B15562007396D3 /* Assets.xcassets in Resources */,
131 | DC34735520B15562007396D3 /* Main.storyboard in Resources */,
132 | );
133 | runOnlyForDeploymentPostprocessing = 0;
134 | };
135 | /* End PBXResourcesBuildPhase section */
136 |
137 | /* Begin PBXSourcesBuildPhase section */
138 | DC34734820B15562007396D3 /* Sources */ = {
139 | isa = PBXSourcesBuildPhase;
140 | buildActionMask = 2147483647;
141 | files = (
142 | DC34735220B15562007396D3 /* ViewController.swift in Sources */,
143 | DC34736220B155C0007396D3 /* CircularProgressView.swift in Sources */,
144 | DC34735020B15562007396D3 /* AppDelegate.swift in Sources */,
145 | );
146 | runOnlyForDeploymentPostprocessing = 0;
147 | };
148 | /* End PBXSourcesBuildPhase section */
149 |
150 | /* Begin PBXVariantGroup section */
151 | DC34735320B15562007396D3 /* Main.storyboard */ = {
152 | isa = PBXVariantGroup;
153 | children = (
154 | DC34735420B15562007396D3 /* Base */,
155 | );
156 | name = Main.storyboard;
157 | sourceTree = "";
158 | };
159 | DC34735820B15562007396D3 /* LaunchScreen.storyboard */ = {
160 | isa = PBXVariantGroup;
161 | children = (
162 | DC34735920B15562007396D3 /* Base */,
163 | );
164 | name = LaunchScreen.storyboard;
165 | sourceTree = "";
166 | };
167 | /* End PBXVariantGroup section */
168 |
169 | /* Begin XCBuildConfiguration section */
170 | DC34735C20B15562007396D3 /* Debug */ = {
171 | isa = XCBuildConfiguration;
172 | buildSettings = {
173 | ALWAYS_SEARCH_USER_PATHS = NO;
174 | CLANG_ANALYZER_NONNULL = YES;
175 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
176 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
177 | CLANG_CXX_LIBRARY = "libc++";
178 | CLANG_ENABLE_MODULES = YES;
179 | CLANG_ENABLE_OBJC_ARC = YES;
180 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
181 | CLANG_WARN_BOOL_CONVERSION = YES;
182 | CLANG_WARN_COMMA = YES;
183 | CLANG_WARN_CONSTANT_CONVERSION = YES;
184 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
185 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
186 | CLANG_WARN_EMPTY_BODY = YES;
187 | CLANG_WARN_ENUM_CONVERSION = YES;
188 | CLANG_WARN_INFINITE_RECURSION = YES;
189 | CLANG_WARN_INT_CONVERSION = YES;
190 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
191 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
192 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
193 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
194 | CLANG_WARN_STRICT_PROTOTYPES = YES;
195 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
196 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
197 | CLANG_WARN_UNREACHABLE_CODE = YES;
198 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
199 | CODE_SIGN_IDENTITY = "iPhone Developer";
200 | COPY_PHASE_STRIP = NO;
201 | DEBUG_INFORMATION_FORMAT = dwarf;
202 | ENABLE_STRICT_OBJC_MSGSEND = YES;
203 | ENABLE_TESTABILITY = YES;
204 | GCC_C_LANGUAGE_STANDARD = gnu11;
205 | GCC_DYNAMIC_NO_PIC = NO;
206 | GCC_NO_COMMON_BLOCKS = YES;
207 | GCC_OPTIMIZATION_LEVEL = 0;
208 | GCC_PREPROCESSOR_DEFINITIONS = (
209 | "DEBUG=1",
210 | "$(inherited)",
211 | );
212 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
213 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
214 | GCC_WARN_UNDECLARED_SELECTOR = YES;
215 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
216 | GCC_WARN_UNUSED_FUNCTION = YES;
217 | GCC_WARN_UNUSED_VARIABLE = YES;
218 | IPHONEOS_DEPLOYMENT_TARGET = 11.2;
219 | MTL_ENABLE_DEBUG_INFO = YES;
220 | ONLY_ACTIVE_ARCH = YES;
221 | SDKROOT = iphoneos;
222 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
223 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
224 | };
225 | name = Debug;
226 | };
227 | DC34735D20B15562007396D3 /* Release */ = {
228 | isa = XCBuildConfiguration;
229 | buildSettings = {
230 | ALWAYS_SEARCH_USER_PATHS = NO;
231 | CLANG_ANALYZER_NONNULL = YES;
232 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
233 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
234 | CLANG_CXX_LIBRARY = "libc++";
235 | CLANG_ENABLE_MODULES = YES;
236 | CLANG_ENABLE_OBJC_ARC = YES;
237 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
238 | CLANG_WARN_BOOL_CONVERSION = YES;
239 | CLANG_WARN_COMMA = YES;
240 | CLANG_WARN_CONSTANT_CONVERSION = YES;
241 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
242 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
243 | CLANG_WARN_EMPTY_BODY = YES;
244 | CLANG_WARN_ENUM_CONVERSION = YES;
245 | CLANG_WARN_INFINITE_RECURSION = YES;
246 | CLANG_WARN_INT_CONVERSION = YES;
247 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
248 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
249 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
250 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
251 | CLANG_WARN_STRICT_PROTOTYPES = YES;
252 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
253 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
254 | CLANG_WARN_UNREACHABLE_CODE = YES;
255 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
256 | CODE_SIGN_IDENTITY = "iPhone Developer";
257 | COPY_PHASE_STRIP = NO;
258 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
259 | ENABLE_NS_ASSERTIONS = NO;
260 | ENABLE_STRICT_OBJC_MSGSEND = YES;
261 | GCC_C_LANGUAGE_STANDARD = gnu11;
262 | GCC_NO_COMMON_BLOCKS = YES;
263 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
264 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
265 | GCC_WARN_UNDECLARED_SELECTOR = YES;
266 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
267 | GCC_WARN_UNUSED_FUNCTION = YES;
268 | GCC_WARN_UNUSED_VARIABLE = YES;
269 | IPHONEOS_DEPLOYMENT_TARGET = 11.2;
270 | MTL_ENABLE_DEBUG_INFO = NO;
271 | SDKROOT = iphoneos;
272 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
273 | VALIDATE_PRODUCT = YES;
274 | };
275 | name = Release;
276 | };
277 | DC34735F20B15562007396D3 /* Debug */ = {
278 | isa = XCBuildConfiguration;
279 | buildSettings = {
280 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
281 | CODE_SIGN_STYLE = Manual;
282 | DEVELOPMENT_TEAM = "";
283 | INFOPLIST_FILE = "CircularProgressView-Tutorial/Info.plist";
284 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
285 | PRODUCT_BUNDLE_IDENTIFIER = "com.iostutorialjunction.CircularProgressView-Tutorial";
286 | PRODUCT_NAME = "$(TARGET_NAME)";
287 | PROVISIONING_PROFILE_SPECIFIER = "";
288 | SWIFT_VERSION = 4.0;
289 | TARGETED_DEVICE_FAMILY = "1,2";
290 | };
291 | name = Debug;
292 | };
293 | DC34736020B15562007396D3 /* Release */ = {
294 | isa = XCBuildConfiguration;
295 | buildSettings = {
296 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
297 | CODE_SIGN_STYLE = Manual;
298 | DEVELOPMENT_TEAM = "";
299 | INFOPLIST_FILE = "CircularProgressView-Tutorial/Info.plist";
300 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
301 | PRODUCT_BUNDLE_IDENTIFIER = "com.iostutorialjunction.CircularProgressView-Tutorial";
302 | PRODUCT_NAME = "$(TARGET_NAME)";
303 | PROVISIONING_PROFILE_SPECIFIER = "";
304 | SWIFT_VERSION = 4.0;
305 | TARGETED_DEVICE_FAMILY = "1,2";
306 | };
307 | name = Release;
308 | };
309 | /* End XCBuildConfiguration section */
310 |
311 | /* Begin XCConfigurationList section */
312 | DC34734720B15562007396D3 /* Build configuration list for PBXProject "CircularProgressView-Tutorial" */ = {
313 | isa = XCConfigurationList;
314 | buildConfigurations = (
315 | DC34735C20B15562007396D3 /* Debug */,
316 | DC34735D20B15562007396D3 /* Release */,
317 | );
318 | defaultConfigurationIsVisible = 0;
319 | defaultConfigurationName = Release;
320 | };
321 | DC34735E20B15562007396D3 /* Build configuration list for PBXNativeTarget "CircularProgressView-Tutorial" */ = {
322 | isa = XCConfigurationList;
323 | buildConfigurations = (
324 | DC34735F20B15562007396D3 /* Debug */,
325 | DC34736020B15562007396D3 /* Release */,
326 | );
327 | defaultConfigurationIsVisible = 0;
328 | defaultConfigurationName = Release;
329 | };
330 | /* End XCConfigurationList section */
331 | };
332 | rootObject = DC34734420B15562007396D3 /* Project object */;
333 | }
334 |
--------------------------------------------------------------------------------