├── 渐变圆loading.gif
├── 图层拼接渐变线.xcodeproj
├── xcuserdata
│ └── xinxibin.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── 图层拼接渐变线.xcscheme
├── project.xcworkspace
│ ├── xcuserdata
│ │ └── xinxibin.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── contents.xcworkspacedata
└── project.pbxproj
├── README.md
└── 图层拼接渐变线
├── ViewController.swift
├── Assets.xcassets
└── AppIcon.appiconset
│ └── Contents.json
├── Info.plist
├── Base.lproj
├── LaunchScreen.storyboard
└── Main.storyboard
├── AppDelegate.swift
└── GMView.swift
/渐变圆loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xinxibin/Gradient-circle-LoadingView/HEAD/渐变圆loading.gif
--------------------------------------------------------------------------------
/图层拼接渐变线.xcodeproj/xcuserdata/xinxibin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/图层拼接渐变线.xcodeproj/project.xcworkspace/xcuserdata/xinxibin.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xinxibin/Gradient-circle-LoadingView/HEAD/图层拼接渐变线.xcodeproj/project.xcworkspace/xcuserdata/xinxibin.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/图层拼接渐变线.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/图层拼接渐变线.xcodeproj/xcuserdata/xinxibin.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | 图层拼接渐变线.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 415526A21D5833A600FD6F2E
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Gradient-circle-LoadingView
2 |
3 |
4 | ### 实现原理:
5 | 渐变图层 使用 CAGradientLayer实现
6 | 
7 |
8 | ### 创建两个 CAGradientLayer 对象
9 | 
10 |
11 |
12 | ### 根据圆的路径在图层上截取一个圆
13 | 
14 |
15 |
16 | ### 使用 CABasicAnimation 让layer 动起来
17 | 
18 |
19 | > 具体实现可以去我的博客或者简书查看
20 | * [博客地址](https://xinxibin.com/iOS-Gradient-Circle-LoadingView)
21 | * [简书地址](http://www.jianshu.com/p/af93e283af8b)
--------------------------------------------------------------------------------
/图层拼接渐变线/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // 图层拼接渐变线
4 | //
5 | // Created by Xinxibin on 16/8/8.
6 | // Copyright © 2016年 GloryMan. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | @IBOutlet weak var gmView: GMView!
14 | override func viewDidLoad() {
15 | super.viewDidLoad()
16 | gmView.strokeEndFloat = 1
17 |
18 | }
19 | @IBAction func changeSlider(sender: UISlider) {
20 | gmView.strokeEndFloat = CGFloat(sender.value)
21 | }
22 |
23 | override func didReceiveMemoryWarning() {
24 | super.didReceiveMemoryWarning()
25 | // Dispose of any resources that can be recreated.
26 | }
27 |
28 |
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/图层拼接渐变线/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/图层拼接渐变线/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/图层拼接渐变线/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 |
--------------------------------------------------------------------------------
/图层拼接渐变线/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // 图层拼接渐变线
4 | //
5 | // Created by Xinxibin on 16/8/8.
6 | // Copyright © 2016年 GloryMan. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(application: UIApplication) {
33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/图层拼接渐变线/GMView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GMView.swift
3 | // 图层拼接渐变线
4 | //
5 | // Created by Xinxibin on 16/8/8.
6 | // Copyright © 2016年 GloryMan. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class GMView: UIView {
12 |
13 | // 主layer
14 | var shapeLayer:CAShapeLayer!
15 | // 圆形layer
16 | var layer1:CAShapeLayer!
17 |
18 | // 色卡1
19 | var colors1:[CGColor] = [UIColor.init(red: 137.0/255.0, green: 137.0/255.0, blue: 137.0/255.0, alpha: 1).CGColor,UIColor.blackColor().CGColor]
20 | // 色卡2
21 | var colors2:[CGColor] = [UIColor.init(red: 110/255.0, green: 110/255.0, blue: 110/255.0, alpha: 1).CGColor,UIColor.whiteColor().CGColor]
22 |
23 | var strokeEndFloat:CGFloat = 0 {
24 | didSet {
25 | layer1.strokeEnd = strokeEndFloat
26 | }
27 | }
28 |
29 | override func awakeFromNib() {
30 | super.awakeFromNib()
31 | setUI()
32 | }
33 |
34 | func setUI() {
35 |
36 | shapeLayer = CAShapeLayer()
37 | shapeLayer.frame = self.bounds
38 | self.layer.addSublayer(shapeLayer)
39 |
40 | // 创建梯形layer
41 | let leftLayer = CAGradientLayer()
42 | leftLayer.frame = CGRectMake(0, 0, 240, 120)
43 | leftLayer.colors = colors1
44 | leftLayer.startPoint = CGPointMake(0, 0.5)
45 | leftLayer.endPoint = CGPointMake(1, 0.5)
46 | shapeLayer.addSublayer(leftLayer)
47 |
48 | let rightLayer = CAGradientLayer()
49 | rightLayer.frame = CGRectMake(0, 120, 240, 120)
50 | rightLayer.colors = colors2
51 | rightLayer.startPoint = CGPointMake(0, 0.5)
52 | rightLayer.endPoint = CGPointMake(1, 0.5)
53 | shapeLayer.addSublayer(rightLayer)
54 |
55 | // 创建一个圆形layer
56 | layer1 = CAShapeLayer()
57 | layer1.frame = self.bounds
58 | layer1.path = UIBezierPath(arcCenter: CGPointMake(120, 120), radius: 100, startAngle: CGFloat(M_PI/30), endAngle: 2 * CGFloat(M_PI) - CGFloat(M_PI/30), clockwise: true).CGPath
59 | layer1.lineWidth = 5
60 | layer1.lineCap = kCALineCapRound
61 | layer1.lineJoin = kCALineJoinRound
62 | layer1.strokeColor = UIColor.blackColor().CGColor
63 | layer1.fillColor = UIColor.clearColor().CGColor
64 |
65 | // 根据laery1 的layer形状在 shaperLayer 中截取出来一个layer
66 | shapeLayer.mask = layer1
67 |
68 | startLoading()
69 | }
70 |
71 | /**
72 | 旋转动画
73 | */
74 | func startLoading() {
75 |
76 | let animation = CABasicAnimation(keyPath: "transform.rotation.z")
77 | animation.toValue = 2 * M_PI
78 | animation.duration = 1.25
79 | animation.repeatCount = HUGE
80 | self.layer.addAnimation(animation, forKey: "")
81 |
82 | }
83 |
84 | }
85 |
--------------------------------------------------------------------------------
/图层拼接渐变线.xcodeproj/xcuserdata/xinxibin.xcuserdatad/xcschemes/图层拼接渐变线.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/图层拼接渐变线/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 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/图层拼接渐变线.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 415526A71D5833A600FD6F2E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 415526A61D5833A600FD6F2E /* AppDelegate.swift */; };
11 | 415526A91D5833A600FD6F2E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 415526A81D5833A600FD6F2E /* ViewController.swift */; };
12 | 415526AC1D5833A600FD6F2E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 415526AA1D5833A600FD6F2E /* Main.storyboard */; };
13 | 415526AE1D5833A600FD6F2E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 415526AD1D5833A600FD6F2E /* Assets.xcassets */; };
14 | 415526B11D5833A600FD6F2E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 415526AF1D5833A600FD6F2E /* LaunchScreen.storyboard */; };
15 | 415526B91D58341600FD6F2E /* GMView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 415526B81D58341600FD6F2E /* GMView.swift */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXFileReference section */
19 | 415526A31D5833A600FD6F2E /* 图层拼接渐变线.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "图层拼接渐变线.app"; sourceTree = BUILT_PRODUCTS_DIR; };
20 | 415526A61D5833A600FD6F2E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
21 | 415526A81D5833A600FD6F2E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
22 | 415526AB1D5833A600FD6F2E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
23 | 415526AD1D5833A600FD6F2E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
24 | 415526B01D5833A600FD6F2E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
25 | 415526B21D5833A600FD6F2E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
26 | 415526B81D58341600FD6F2E /* GMView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GMView.swift; sourceTree = ""; };
27 | /* End PBXFileReference section */
28 |
29 | /* Begin PBXFrameworksBuildPhase section */
30 | 415526A01D5833A600FD6F2E /* Frameworks */ = {
31 | isa = PBXFrameworksBuildPhase;
32 | buildActionMask = 2147483647;
33 | files = (
34 | );
35 | runOnlyForDeploymentPostprocessing = 0;
36 | };
37 | /* End PBXFrameworksBuildPhase section */
38 |
39 | /* Begin PBXGroup section */
40 | 4155269A1D5833A600FD6F2E = {
41 | isa = PBXGroup;
42 | children = (
43 | 415526A51D5833A600FD6F2E /* 图层拼接渐变线 */,
44 | 415526A41D5833A600FD6F2E /* Products */,
45 | );
46 | sourceTree = "";
47 | };
48 | 415526A41D5833A600FD6F2E /* Products */ = {
49 | isa = PBXGroup;
50 | children = (
51 | 415526A31D5833A600FD6F2E /* 图层拼接渐变线.app */,
52 | );
53 | name = Products;
54 | sourceTree = "";
55 | };
56 | 415526A51D5833A600FD6F2E /* 图层拼接渐变线 */ = {
57 | isa = PBXGroup;
58 | children = (
59 | 415526A61D5833A600FD6F2E /* AppDelegate.swift */,
60 | 415526A81D5833A600FD6F2E /* ViewController.swift */,
61 | 415526B81D58341600FD6F2E /* GMView.swift */,
62 | 415526AA1D5833A600FD6F2E /* Main.storyboard */,
63 | 415526AD1D5833A600FD6F2E /* Assets.xcassets */,
64 | 415526AF1D5833A600FD6F2E /* LaunchScreen.storyboard */,
65 | 415526B21D5833A600FD6F2E /* Info.plist */,
66 | );
67 | path = "图层拼接渐变线";
68 | sourceTree = "";
69 | };
70 | /* End PBXGroup section */
71 |
72 | /* Begin PBXNativeTarget section */
73 | 415526A21D5833A600FD6F2E /* 图层拼接渐变线 */ = {
74 | isa = PBXNativeTarget;
75 | buildConfigurationList = 415526B51D5833A600FD6F2E /* Build configuration list for PBXNativeTarget "图层拼接渐变线" */;
76 | buildPhases = (
77 | 4155269F1D5833A600FD6F2E /* Sources */,
78 | 415526A01D5833A600FD6F2E /* Frameworks */,
79 | 415526A11D5833A600FD6F2E /* Resources */,
80 | );
81 | buildRules = (
82 | );
83 | dependencies = (
84 | );
85 | name = "图层拼接渐变线";
86 | productName = "图层拼接渐变线";
87 | productReference = 415526A31D5833A600FD6F2E /* 图层拼接渐变线.app */;
88 | productType = "com.apple.product-type.application";
89 | };
90 | /* End PBXNativeTarget section */
91 |
92 | /* Begin PBXProject section */
93 | 4155269B1D5833A600FD6F2E /* Project object */ = {
94 | isa = PBXProject;
95 | attributes = {
96 | LastSwiftUpdateCheck = 0730;
97 | LastUpgradeCheck = 0730;
98 | ORGANIZATIONNAME = GloryMan;
99 | TargetAttributes = {
100 | 415526A21D5833A600FD6F2E = {
101 | CreatedOnToolsVersion = 7.3.1;
102 | };
103 | };
104 | };
105 | buildConfigurationList = 4155269E1D5833A600FD6F2E /* Build configuration list for PBXProject "图层拼接渐变线" */;
106 | compatibilityVersion = "Xcode 3.2";
107 | developmentRegion = English;
108 | hasScannedForEncodings = 0;
109 | knownRegions = (
110 | en,
111 | Base,
112 | );
113 | mainGroup = 4155269A1D5833A600FD6F2E;
114 | productRefGroup = 415526A41D5833A600FD6F2E /* Products */;
115 | projectDirPath = "";
116 | projectRoot = "";
117 | targets = (
118 | 415526A21D5833A600FD6F2E /* 图层拼接渐变线 */,
119 | );
120 | };
121 | /* End PBXProject section */
122 |
123 | /* Begin PBXResourcesBuildPhase section */
124 | 415526A11D5833A600FD6F2E /* Resources */ = {
125 | isa = PBXResourcesBuildPhase;
126 | buildActionMask = 2147483647;
127 | files = (
128 | 415526B11D5833A600FD6F2E /* LaunchScreen.storyboard in Resources */,
129 | 415526AE1D5833A600FD6F2E /* Assets.xcassets in Resources */,
130 | 415526AC1D5833A600FD6F2E /* Main.storyboard in Resources */,
131 | );
132 | runOnlyForDeploymentPostprocessing = 0;
133 | };
134 | /* End PBXResourcesBuildPhase section */
135 |
136 | /* Begin PBXSourcesBuildPhase section */
137 | 4155269F1D5833A600FD6F2E /* Sources */ = {
138 | isa = PBXSourcesBuildPhase;
139 | buildActionMask = 2147483647;
140 | files = (
141 | 415526B91D58341600FD6F2E /* GMView.swift in Sources */,
142 | 415526A91D5833A600FD6F2E /* ViewController.swift in Sources */,
143 | 415526A71D5833A600FD6F2E /* AppDelegate.swift in Sources */,
144 | );
145 | runOnlyForDeploymentPostprocessing = 0;
146 | };
147 | /* End PBXSourcesBuildPhase section */
148 |
149 | /* Begin PBXVariantGroup section */
150 | 415526AA1D5833A600FD6F2E /* Main.storyboard */ = {
151 | isa = PBXVariantGroup;
152 | children = (
153 | 415526AB1D5833A600FD6F2E /* Base */,
154 | );
155 | name = Main.storyboard;
156 | sourceTree = "";
157 | };
158 | 415526AF1D5833A600FD6F2E /* LaunchScreen.storyboard */ = {
159 | isa = PBXVariantGroup;
160 | children = (
161 | 415526B01D5833A600FD6F2E /* Base */,
162 | );
163 | name = LaunchScreen.storyboard;
164 | sourceTree = "";
165 | };
166 | /* End PBXVariantGroup section */
167 |
168 | /* Begin XCBuildConfiguration section */
169 | 415526B31D5833A600FD6F2E /* Debug */ = {
170 | isa = XCBuildConfiguration;
171 | buildSettings = {
172 | ALWAYS_SEARCH_USER_PATHS = NO;
173 | CLANG_ANALYZER_NONNULL = YES;
174 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
175 | CLANG_CXX_LIBRARY = "libc++";
176 | CLANG_ENABLE_MODULES = YES;
177 | CLANG_ENABLE_OBJC_ARC = YES;
178 | CLANG_WARN_BOOL_CONVERSION = YES;
179 | CLANG_WARN_CONSTANT_CONVERSION = YES;
180 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
181 | CLANG_WARN_EMPTY_BODY = YES;
182 | CLANG_WARN_ENUM_CONVERSION = YES;
183 | CLANG_WARN_INT_CONVERSION = YES;
184 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
185 | CLANG_WARN_UNREACHABLE_CODE = YES;
186 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
187 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
188 | COPY_PHASE_STRIP = NO;
189 | DEBUG_INFORMATION_FORMAT = dwarf;
190 | ENABLE_STRICT_OBJC_MSGSEND = YES;
191 | ENABLE_TESTABILITY = YES;
192 | GCC_C_LANGUAGE_STANDARD = gnu99;
193 | GCC_DYNAMIC_NO_PIC = NO;
194 | GCC_NO_COMMON_BLOCKS = YES;
195 | GCC_OPTIMIZATION_LEVEL = 0;
196 | GCC_PREPROCESSOR_DEFINITIONS = (
197 | "DEBUG=1",
198 | "$(inherited)",
199 | );
200 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
201 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
202 | GCC_WARN_UNDECLARED_SELECTOR = YES;
203 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
204 | GCC_WARN_UNUSED_FUNCTION = YES;
205 | GCC_WARN_UNUSED_VARIABLE = YES;
206 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
207 | MTL_ENABLE_DEBUG_INFO = YES;
208 | ONLY_ACTIVE_ARCH = YES;
209 | SDKROOT = iphoneos;
210 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
211 | };
212 | name = Debug;
213 | };
214 | 415526B41D5833A600FD6F2E /* Release */ = {
215 | isa = XCBuildConfiguration;
216 | buildSettings = {
217 | ALWAYS_SEARCH_USER_PATHS = NO;
218 | CLANG_ANALYZER_NONNULL = YES;
219 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
220 | CLANG_CXX_LIBRARY = "libc++";
221 | CLANG_ENABLE_MODULES = YES;
222 | CLANG_ENABLE_OBJC_ARC = YES;
223 | CLANG_WARN_BOOL_CONVERSION = YES;
224 | CLANG_WARN_CONSTANT_CONVERSION = YES;
225 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
226 | CLANG_WARN_EMPTY_BODY = YES;
227 | CLANG_WARN_ENUM_CONVERSION = YES;
228 | CLANG_WARN_INT_CONVERSION = YES;
229 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
230 | CLANG_WARN_UNREACHABLE_CODE = YES;
231 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
232 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
233 | COPY_PHASE_STRIP = NO;
234 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
235 | ENABLE_NS_ASSERTIONS = NO;
236 | ENABLE_STRICT_OBJC_MSGSEND = YES;
237 | GCC_C_LANGUAGE_STANDARD = gnu99;
238 | GCC_NO_COMMON_BLOCKS = YES;
239 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
240 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
241 | GCC_WARN_UNDECLARED_SELECTOR = YES;
242 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
243 | GCC_WARN_UNUSED_FUNCTION = YES;
244 | GCC_WARN_UNUSED_VARIABLE = YES;
245 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
246 | MTL_ENABLE_DEBUG_INFO = NO;
247 | SDKROOT = iphoneos;
248 | VALIDATE_PRODUCT = YES;
249 | };
250 | name = Release;
251 | };
252 | 415526B61D5833A600FD6F2E /* Debug */ = {
253 | isa = XCBuildConfiguration;
254 | buildSettings = {
255 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
256 | INFOPLIST_FILE = "图层拼接渐变线/Info.plist";
257 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
258 | PRODUCT_BUNDLE_IDENTIFIER = "-06907778-qq.com.-------";
259 | PRODUCT_NAME = "$(TARGET_NAME)";
260 | };
261 | name = Debug;
262 | };
263 | 415526B71D5833A600FD6F2E /* Release */ = {
264 | isa = XCBuildConfiguration;
265 | buildSettings = {
266 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
267 | INFOPLIST_FILE = "图层拼接渐变线/Info.plist";
268 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
269 | PRODUCT_BUNDLE_IDENTIFIER = "-06907778-qq.com.-------";
270 | PRODUCT_NAME = "$(TARGET_NAME)";
271 | };
272 | name = Release;
273 | };
274 | /* End XCBuildConfiguration section */
275 |
276 | /* Begin XCConfigurationList section */
277 | 4155269E1D5833A600FD6F2E /* Build configuration list for PBXProject "图层拼接渐变线" */ = {
278 | isa = XCConfigurationList;
279 | buildConfigurations = (
280 | 415526B31D5833A600FD6F2E /* Debug */,
281 | 415526B41D5833A600FD6F2E /* Release */,
282 | );
283 | defaultConfigurationIsVisible = 0;
284 | defaultConfigurationName = Release;
285 | };
286 | 415526B51D5833A600FD6F2E /* Build configuration list for PBXNativeTarget "图层拼接渐变线" */ = {
287 | isa = XCConfigurationList;
288 | buildConfigurations = (
289 | 415526B61D5833A600FD6F2E /* Debug */,
290 | 415526B71D5833A600FD6F2E /* Release */,
291 | );
292 | defaultConfigurationIsVisible = 0;
293 | };
294 | /* End XCConfigurationList section */
295 | };
296 | rootObject = 4155269B1D5833A600FD6F2E /* Project object */;
297 | }
298 |
--------------------------------------------------------------------------------