├── loadingAnimation
├── loadingAnimation
│ ├── Home_deviceSelect.png
│ ├── ViewController.h
│ ├── AppDelegate.h
│ ├── main.m
│ ├── Lib
│ │ ├── CABasicAnimation+Category.h
│ │ ├── catergory.swift
│ │ ├── LoadingView.h
│ │ ├── CABasicAnimation+Category.m
│ │ └── LoadingView.m
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── Info.plist
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── AppDelegate.m
│ └── ViewController.m
└── loadingAnimation.xcodeproj
│ ├── project.xcworkspace
│ └── contents.xcworkspacedata
│ └── project.pbxproj
├── README.md
├── LICENSE
└── .gitignore
/loadingAnimation/loadingAnimation/Home_deviceSelect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/markdashi/LoadingAnimation/HEAD/loadingAnimation/loadingAnimation/Home_deviceSelect.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # LoadingAnimation
2 | The Project is Customed design Loading Animation,if you want to learn more,please visit my blog place link http://www.jianshu.com/p/b660eb8b8bc1
3 | Thanks!
4 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // loadingAnimation
4 | //
5 | // Created by apple on 4/7/16.
6 | // Copyright © 2016年 mark. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // loadingAnimation
4 | //
5 | // Created by apple on 4/7/16.
6 | // Copyright © 2016年 mark. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // loadingAnimation
4 | //
5 | // Created by apple on 4/7/16.
6 | // Copyright © 2016年 mark. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/Lib/CABasicAnimation+Category.h:
--------------------------------------------------------------------------------
1 | //
2 | // CABasicAnimation+Category.h
3 | // beizerPath
4 | //
5 | // Created by apple on 27/6/16.
6 | // Copyright © 2016年 mark. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface CABasicAnimation (Category)
12 |
13 |
14 | /**
15 | * forever twinkling 永久闪烁的动画
16 | *
17 | * @param time time duration 持续时间
18 | *
19 | * @return self 返回当前类
20 | */
21 | + (CABasicAnimation *)opacityForever_Animation:(float)time;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/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 | }
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/Lib/catergory.swift:
--------------------------------------------------------------------------------
1 | //
2 | // catergory.swift
3 | // beizerPath
4 | //
5 | // Created by apple on 27/6/16.
6 | // Copyright © 2016年 mark. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class catergory: CABasicAnimation {
12 |
13 |
14 | class func opacityForever_Animation(time : NSTimeInterval) -> CABasicAnimation {
15 |
16 |
17 | let animation = CABasicAnimation(keyPath:"opacity")
18 | animation.fromValue = 1
19 | animation.toValue = 0
20 | animation.duration = time
21 | animation.autoreverses = true
22 | animation.removedOnCompletion = false
23 | animation.fillMode = kCAFillModeForwards
24 | animation.timingFunction = CAMediaTimingFunction.init(name: kCAMediaTimingFunctionEaseIn)
25 |
26 | return animation
27 | }
28 |
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/Lib/LoadingView.h:
--------------------------------------------------------------------------------
1 | //
2 | // LoadingView.h
3 | // beizerPath
4 | //
5 | // Created by apple on 30/6/16.
6 | // Copyright © 2016年 mark. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface LoadingView : UIView
12 |
13 |
14 | /**
15 | * show circle LoadingView
16 | *
17 | * @param view showed
18 | */
19 | + (void)showCircleView:(UIView *)view;
20 | /**
21 | * show dot LoadingView
22 | *
23 | * @param view showed
24 | */
25 |
26 | + (void)showDotView:(UIView *)view;
27 |
28 | /**
29 | * show line LoadingView
30 | *
31 | * @param view showed
32 | */
33 | + (void)showLineView:(UIView *)view;
34 |
35 | /**
36 | * show CircleJoin LoadingView
37 | *
38 | * @param view showed
39 | */
40 | + (void)showCircleJoinView:(UIView *)view;
41 |
42 | /**
43 | * hide loadingView
44 | */
45 | + (void)hide;
46 |
47 |
48 | @end
49 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/Lib/CABasicAnimation+Category.m:
--------------------------------------------------------------------------------
1 | //
2 | // CABasicAnimation+Category.m
3 | // beizerPath
4 | //
5 | // Created by apple on 27/6/16.
6 | // Copyright © 2016年 mark. All rights reserved.
7 | //
8 |
9 | #import "CABasicAnimation+Category.h"
10 |
11 | @implementation CABasicAnimation (Category)
12 |
13 | #pragma mark === 永久闪烁的动画 ======
14 | + (CABasicAnimation *)opacityForever_Animation:(float)time
15 | {
16 | CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"opacity"];//必须写opacity才行。
17 | animation.fromValue = @1.f;
18 | animation.toValue = @0;//这是透明度。
19 | animation.autoreverses = YES; //
20 | animation.duration = time;
21 | animation.repeatCount = MAXFLOAT;
22 | animation.removedOnCompletion = NO;
23 | animation.fillMode = kCAFillModeForwards;
24 | //定义动画的样式 渐入式 timingFunction 控制动画运行的节奏
25 | animation.timingFunction =[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
26 | return animation;
27 |
28 | }
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 markdashi
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/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 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata/
19 |
20 | ## Other
21 | *.moved-aside
22 | *.xcuserstate
23 |
24 | ## Obj-C/Swift specific
25 | *.hmap
26 | *.ipa
27 | *.dSYM.zip
28 | *.dSYM
29 |
30 | # CocoaPods
31 | #
32 | # We recommend against adding the Pods directory to your .gitignore. However
33 | # you should judge for yourself, the pros and cons are mentioned at:
34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
35 | #
36 | # Pods/
37 |
38 | # Carthage
39 | #
40 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
41 | # Carthage/Checkouts
42 |
43 | Carthage/Build
44 |
45 | # fastlane
46 | #
47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48 | # screenshots whenever they are needed.
49 | # For more information about the recommended setup visit:
50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
51 |
52 | fastlane/report.xml
53 | fastlane/screenshots
54 |
55 | #Code Injection
56 | #
57 | # After new code Injection tools there's a generated folder /iOSInjectionProject
58 | # https://github.com/johnno1962/injectionforxcode
59 |
60 | iOSInjectionProject/
61 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/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 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // loadingAnimation
4 | //
5 | // Created by apple on 4/7/16.
6 | // Copyright © 2016年 mark. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // 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.
25 | // 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.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // 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.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // 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.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // 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.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/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 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // loadingAnimation
4 | //
5 | // Created by apple on 4/7/16.
6 | // Copyright © 2016年 mark. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "CABasicAnimation+Category.h"
11 | #import "LoadingView.h"
12 |
13 | @interface ViewController ()
14 | {
15 | NSMutableArray *array;
16 | }
17 | @end
18 |
19 | @implementation ViewController
20 |
21 | - (void)viewDidLoad {
22 | [super viewDidLoad];
23 | // Do any additional setup after loading the view, typically from a nib.
24 |
25 | self.automaticallyAdjustsScrollViewInsets = NO;
26 | self.title = @"加载等待动画";
27 |
28 | /**加载等到动画*/
29 | UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 64, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height - 64) style:UITableViewStylePlain];
30 |
31 | tableView.delegate = self;
32 | tableView.dataSource = self;
33 |
34 | [self.view addSubview:tableView];
35 |
36 |
37 | array = [NSMutableArray arrayWithObjects:
38 | @"circleLoadingView",
39 | @"lineLoadingView",
40 | @"dotLoadingView",
41 | @"showCircleJoinView", nil];
42 |
43 |
44 |
45 | /*
46 | 2.闪烁动画。
47 | UIImageView *myTest1 = [[UIImageView alloc]init];
48 |
49 | [myTest1 setImage:[UIImage imageNamed:@"Home_deviceSelect"]];
50 | myTest1.layer.position = CGPointMake(0, 0);
51 | myTest1.center = self.view.center;
52 | [myTest1 sizeToFit];
53 | [self.view addSubview:myTest1];
54 |
55 |
56 | [myTest1.layer addAnimation:[CABasicAnimation opacityForever_Animation:0.5] forKey:nil];
57 |
58 | */
59 |
60 | }
61 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
62 | {
63 | return array.count;
64 | }
65 |
66 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
67 | {
68 |
69 | static NSString *ID = @"cell";
70 |
71 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
72 | if (cell == nil) {
73 |
74 | cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
75 | }
76 |
77 | cell.textLabel.text = [array objectAtIndex:indexPath.row];
78 |
79 | return cell;
80 |
81 | }
82 |
83 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
84 | {
85 |
86 | UIViewController *vc = [[UIViewController alloc] init];
87 | vc.view.backgroundColor = [UIColor whiteColor];
88 | switch (indexPath.row) {
89 | case 0:
90 | [LoadingView showCircleView:vc.view];
91 | break;
92 | case 1:
93 | [LoadingView showLineView:vc.view];
94 | break;
95 | case 2:
96 | [LoadingView showDotView:vc.view];
97 | break;
98 | case 3:
99 | [LoadingView showCircleJoinView:vc.view];
100 | break;
101 | default:
102 | break;
103 | }
104 |
105 |
106 |
107 | [self.navigationController pushViewController:vc animated:YES];
108 |
109 | }
110 |
111 | - (void)didReceiveMemoryWarning {
112 | [super didReceiveMemoryWarning];
113 | // Dispose of any resources that can be recreated.
114 | }
115 |
116 | @end
117 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation/Lib/LoadingView.m:
--------------------------------------------------------------------------------
1 | //
2 | // LoadingView.m
3 | // beizerPath
4 | //
5 | // Created by apple on 30/6/16.
6 | // Copyright © 2016年 mark. All rights reserved.
7 | //
8 |
9 | #import "LoadingView.h"
10 |
11 | static LoadingView *loadView;
12 |
13 | typedef enum : NSUInteger {
14 | LoadingViewCircle,
15 | LoadingViewDot,
16 | LoadingViewLine,
17 | LoadingViewCircleJoin,
18 | } LoadingViewType;
19 |
20 |
21 |
22 | @implementation LoadingView
23 |
24 |
25 | - (instancetype)initWithFrame:(CGRect)frame type:(LoadingViewType)type
26 | {
27 |
28 | if (self == [super initWithFrame:frame]) {
29 |
30 | switch (type) {
31 | case LoadingViewCircle:
32 | [self creatAnimation];
33 | break;
34 | case LoadingViewDot:
35 | [self createDotAnimation];
36 | break;
37 | case LoadingViewLine:
38 | [self createLineAnimation];
39 | break;
40 |
41 | case LoadingViewCircleJoin:
42 | [self creatCircleJoinAnimation];
43 | break;
44 |
45 | default:
46 | break;
47 | }
48 |
49 |
50 | }
51 |
52 | return self;
53 | }
54 |
55 |
56 |
57 | #pragma mark - public
58 |
59 | + (void)showDotView:(UIView *)view
60 | {
61 | loadView = [[LoadingView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) type:LoadingViewDot];
62 | loadView.backgroundColor = [UIColor whiteColor];
63 | loadView.center = view.center;
64 | [view addSubview:loadView];
65 | }
66 | + (void)showLineView:(UIView *)view
67 | {
68 |
69 | loadView = [[LoadingView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) type:LoadingViewLine];
70 | loadView.backgroundColor = [UIColor whiteColor];
71 | loadView.center = view.center;
72 | [view addSubview:loadView];
73 | }
74 | + (void)showCircleView:(UIView *)view
75 | {
76 |
77 | loadView = [[LoadingView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) type:LoadingViewCircle];
78 | loadView.backgroundColor = [UIColor whiteColor];
79 | loadView.center = view.center;
80 | [view addSubview:loadView];
81 |
82 | }
83 | + (void)showCircleJoinView:(UIView *)view
84 | {
85 | loadView = [[LoadingView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) type:LoadingViewCircleJoin];
86 | loadView.backgroundColor = [UIColor whiteColor];
87 | loadView.center = view.center;
88 | [view addSubview:loadView];
89 |
90 |
91 | }
92 |
93 | + (void)hide{
94 |
95 | if (loadView) {
96 | [loadView removeFromSuperview];
97 | }
98 | }
99 |
100 |
101 |
102 | #pragma mark - private method
103 |
104 | - (void)creatAnimation
105 |
106 | {
107 | CAReplicatorLayer *replicatorLayer = [CAReplicatorLayer layer];
108 | replicatorLayer.bounds = CGRectMake(0, 0, 100, 100);
109 | replicatorLayer.cornerRadius = 10.0;
110 | replicatorLayer.position = self.center;
111 | replicatorLayer.backgroundColor = [UIColor colorWithRed:0.1 green:0.1 blue:0.1 alpha:0.2].CGColor;
112 |
113 | [self.layer addSublayer:replicatorLayer];
114 |
115 |
116 | CALayer *dot = [CALayer layer];
117 | dot.bounds = CGRectMake(0, 0, 10, 10);
118 | dot.position = CGPointMake(50, 20);
119 | dot.backgroundColor = [UIColor colorWithRed:0.2 green:0.2 blue:0.2 alpha:0.6].CGColor;
120 | dot.cornerRadius = 5;
121 | dot.masksToBounds = YES;
122 |
123 | [replicatorLayer addSublayer:dot];
124 |
125 |
126 | CGFloat count = 10.0;
127 | replicatorLayer.instanceCount = count;
128 | CGFloat angel = 2* M_PI/count;
129 | replicatorLayer.instanceTransform = CATransform3DMakeRotation(angel, 0, 0, 1);
130 |
131 |
132 | CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform.scale"];
133 | animation.duration = 1.0;
134 | animation.fromValue = @1;
135 | animation.toValue = @0.1;
136 | animation.repeatCount = MAXFLOAT;
137 | [dot addAnimation:animation forKey:nil];
138 |
139 |
140 | replicatorLayer.instanceDelay = 1.0/ count;
141 |
142 | dot.transform = CATransform3DMakeScale(0.01, 0.01, 0.01);
143 | }
144 | - (void)creatCircleJoinAnimation
145 |
146 | {
147 | CAReplicatorLayer *replicatorLayer = [CAReplicatorLayer layer];
148 | replicatorLayer.bounds = CGRectMake(0, 0, 100, 100);
149 | replicatorLayer.cornerRadius = 10.0;
150 | replicatorLayer.position = self.center;
151 | replicatorLayer.backgroundColor = [UIColor colorWithRed:0.1 green:0.1 blue:0.1 alpha:0.2].CGColor;
152 |
153 | [self.layer addSublayer:replicatorLayer];
154 |
155 |
156 | CALayer *dot = [CALayer layer];
157 | dot.bounds = CGRectMake(0, 0, 10, 10);
158 | dot.position = CGPointMake(50, 20);
159 | dot.backgroundColor = [UIColor colorWithRed:0.2 green:0.2 blue:0.2 alpha:0.6].CGColor;
160 | dot.cornerRadius = 5;
161 | dot.masksToBounds = YES;
162 |
163 | [replicatorLayer addSublayer:dot];
164 |
165 |
166 | CGFloat count = 100.0;
167 | replicatorLayer.instanceCount = count;
168 | CGFloat angel = 2* M_PI/count;
169 | replicatorLayer.instanceTransform = CATransform3DMakeRotation(angel, 0, 0, 1);
170 |
171 |
172 | CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform.scale"];
173 | animation.duration = 1.0;
174 | animation.fromValue = @1;
175 | animation.toValue = @0.1;
176 | animation.repeatCount = MAXFLOAT;
177 | [dot addAnimation:animation forKey:nil];
178 |
179 |
180 | replicatorLayer.instanceDelay = 1.0/ count;
181 |
182 | dot.transform = CATransform3DMakeScale(0.01, 0.01, 0.01);
183 | }
184 |
185 |
186 | - (void)createLineAnimation{
187 |
188 | //1.创建relicatorLayer对象
189 |
190 | CAReplicatorLayer *replicatorLayer = [CAReplicatorLayer layer];
191 | replicatorLayer.bounds = CGRectMake(0, 0, 100, 100);
192 | replicatorLayer.position = self.center;
193 | replicatorLayer.backgroundColor = [UIColor colorWithRed:0.1 green:0.1 blue:0.1 alpha:0.1].CGColor;
194 | replicatorLayer.cornerRadius = 10;
195 | replicatorLayer.masksToBounds = YES;
196 |
197 | [self.layer addSublayer:replicatorLayer];
198 |
199 |
200 |
201 | CGFloat count = 4;
202 | CGFloat lineH = 50;
203 | CGFloat lineMarginX = 30;
204 | CGFloat lineInter = 10;
205 | CGFloat lineW = 5;
206 |
207 | //2.创建CALayer对象
208 | CALayer *lineLayer = [CALayer layer];
209 | lineLayer.bounds = CGRectMake(0, 0, lineW, lineH);
210 | lineLayer.position = CGPointMake(lineMarginX, replicatorLayer.frame.size.height - 30);
211 | lineLayer.backgroundColor = [UIColor colorWithRed:0.1 green:0.1 blue:0.1 alpha:0.6].CGColor;
212 |
213 | [replicatorLayer addSublayer:lineLayer];
214 |
215 |
216 | replicatorLayer.instanceCount = count;
217 |
218 | replicatorLayer.instanceTransform = CATransform3DMakeTranslation(lineInter, 0, 0);
219 |
220 |
221 |
222 | //3.设置动画
223 | CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"position.y"];
224 | animation.toValue = @(lineH*0.4);
225 | animation.duration = 0.5;
226 | animation.autoreverses = YES;
227 | animation.repeatCount = MAXFLOAT;
228 |
229 | [lineLayer addAnimation:animation forKey:nil];
230 |
231 | replicatorLayer.instanceDelay = 0.5 / count;
232 | }
233 |
234 | - (void)createDotAnimation{
235 |
236 |
237 | //1.创建relicatorLayer对象
238 |
239 | CAReplicatorLayer *replicatorLayer = [CAReplicatorLayer layer];
240 | replicatorLayer.bounds = CGRectMake(0, 0, 100, 100);
241 | replicatorLayer.position = self.center;
242 | replicatorLayer.backgroundColor = [UIColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.5].CGColor;
243 | replicatorLayer.cornerRadius = 10;
244 | replicatorLayer.masksToBounds = YES;
245 |
246 | [self.layer addSublayer:replicatorLayer];
247 |
248 |
249 |
250 | CALayer *dotLayer = [CALayer layer];
251 | dotLayer.bounds = CGRectMake(0, 0, 15, 15);
252 | dotLayer.position = CGPointMake(15, replicatorLayer.frame.size.height/2 );
253 | dotLayer.backgroundColor = [UIColor colorWithRed:0.1 green:0.1 blue:0.1 alpha:0.6].CGColor;
254 | dotLayer.cornerRadius = 7.5;
255 |
256 | [replicatorLayer addSublayer:dotLayer];
257 |
258 |
259 | replicatorLayer.instanceCount = 3;
260 | replicatorLayer.instanceTransform = CATransform3DMakeTranslation(replicatorLayer.frame.size.width/3, 0, 0);
261 |
262 |
263 |
264 | CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform.scale"];
265 | animation.duration = 0.8;
266 | animation.fromValue = @1;
267 | animation.toValue = @0;
268 | animation.repeatCount = MAXFLOAT;
269 | [dotLayer addAnimation:animation forKey:nil];
270 |
271 |
272 | replicatorLayer.instanceDelay = 0.8/3;
273 |
274 | dotLayer.transform = CATransform3DMakeScale(0, 0, 0);
275 | }
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 | @end
291 |
--------------------------------------------------------------------------------
/loadingAnimation/loadingAnimation.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 185076151D2A30FD005B327A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 185076141D2A30FD005B327A /* main.m */; };
11 | 185076181D2A30FD005B327A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 185076171D2A30FD005B327A /* AppDelegate.m */; };
12 | 1850761B1D2A30FD005B327A /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1850761A1D2A30FD005B327A /* ViewController.m */; };
13 | 1850761E1D2A30FD005B327A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1850761C1D2A30FD005B327A /* Main.storyboard */; };
14 | 185076201D2A30FD005B327A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1850761F1D2A30FD005B327A /* Assets.xcassets */; };
15 | 185076231D2A30FD005B327A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 185076211D2A30FD005B327A /* LaunchScreen.storyboard */; };
16 | 185076331D2A317C005B327A /* Home_deviceSelect.png in Resources */ = {isa = PBXBuildFile; fileRef = 185076321D2A317C005B327A /* Home_deviceSelect.png */; };
17 | 1850763A1D2A32BA005B327A /* CABasicAnimation+Category.m in Sources */ = {isa = PBXBuildFile; fileRef = 185076361D2A32BA005B327A /* CABasicAnimation+Category.m */; };
18 | 1850763B1D2A32BA005B327A /* catergory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 185076371D2A32BA005B327A /* catergory.swift */; };
19 | 1850763C1D2A32BA005B327A /* LoadingView.m in Sources */ = {isa = PBXBuildFile; fileRef = 185076391D2A32BA005B327A /* LoadingView.m */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXFileReference section */
23 | 185076101D2A30FD005B327A /* loadingAnimation.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = loadingAnimation.app; sourceTree = BUILT_PRODUCTS_DIR; };
24 | 185076141D2A30FD005B327A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
25 | 185076161D2A30FD005B327A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
26 | 185076171D2A30FD005B327A /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
27 | 185076191D2A30FD005B327A /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
28 | 1850761A1D2A30FD005B327A /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
29 | 1850761D1D2A30FD005B327A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
30 | 1850761F1D2A30FD005B327A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
31 | 185076221D2A30FD005B327A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
32 | 185076241D2A30FD005B327A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
33 | 185076321D2A317C005B327A /* Home_deviceSelect.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Home_deviceSelect.png; sourceTree = ""; };
34 | 185076351D2A32BA005B327A /* CABasicAnimation+Category.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "CABasicAnimation+Category.h"; sourceTree = ""; };
35 | 185076361D2A32BA005B327A /* CABasicAnimation+Category.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "CABasicAnimation+Category.m"; sourceTree = ""; };
36 | 185076371D2A32BA005B327A /* catergory.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = catergory.swift; sourceTree = ""; };
37 | 185076381D2A32BA005B327A /* LoadingView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LoadingView.h; sourceTree = ""; };
38 | 185076391D2A32BA005B327A /* LoadingView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LoadingView.m; sourceTree = ""; };
39 | /* End PBXFileReference section */
40 |
41 | /* Begin PBXFrameworksBuildPhase section */
42 | 1850760D1D2A30FD005B327A /* Frameworks */ = {
43 | isa = PBXFrameworksBuildPhase;
44 | buildActionMask = 2147483647;
45 | files = (
46 | );
47 | runOnlyForDeploymentPostprocessing = 0;
48 | };
49 | /* End PBXFrameworksBuildPhase section */
50 |
51 | /* Begin PBXGroup section */
52 | 185076071D2A30FD005B327A = {
53 | isa = PBXGroup;
54 | children = (
55 | 185076121D2A30FD005B327A /* loadingAnimation */,
56 | 185076111D2A30FD005B327A /* Products */,
57 | );
58 | sourceTree = "";
59 | };
60 | 185076111D2A30FD005B327A /* Products */ = {
61 | isa = PBXGroup;
62 | children = (
63 | 185076101D2A30FD005B327A /* loadingAnimation.app */,
64 | );
65 | name = Products;
66 | sourceTree = "";
67 | };
68 | 185076121D2A30FD005B327A /* loadingAnimation */ = {
69 | isa = PBXGroup;
70 | children = (
71 | 185076341D2A32BA005B327A /* Lib */,
72 | 185076321D2A317C005B327A /* Home_deviceSelect.png */,
73 | 185076161D2A30FD005B327A /* AppDelegate.h */,
74 | 185076171D2A30FD005B327A /* AppDelegate.m */,
75 | 185076191D2A30FD005B327A /* ViewController.h */,
76 | 1850761A1D2A30FD005B327A /* ViewController.m */,
77 | 1850761C1D2A30FD005B327A /* Main.storyboard */,
78 | 1850761F1D2A30FD005B327A /* Assets.xcassets */,
79 | 185076211D2A30FD005B327A /* LaunchScreen.storyboard */,
80 | 185076241D2A30FD005B327A /* Info.plist */,
81 | 185076131D2A30FD005B327A /* Supporting Files */,
82 | );
83 | path = loadingAnimation;
84 | sourceTree = "";
85 | };
86 | 185076131D2A30FD005B327A /* Supporting Files */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 185076141D2A30FD005B327A /* main.m */,
90 | );
91 | name = "Supporting Files";
92 | sourceTree = "";
93 | };
94 | 185076341D2A32BA005B327A /* Lib */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 185076351D2A32BA005B327A /* CABasicAnimation+Category.h */,
98 | 185076361D2A32BA005B327A /* CABasicAnimation+Category.m */,
99 | 185076371D2A32BA005B327A /* catergory.swift */,
100 | 185076381D2A32BA005B327A /* LoadingView.h */,
101 | 185076391D2A32BA005B327A /* LoadingView.m */,
102 | );
103 | path = Lib;
104 | sourceTree = "";
105 | };
106 | /* End PBXGroup section */
107 |
108 | /* Begin PBXNativeTarget section */
109 | 1850760F1D2A30FD005B327A /* loadingAnimation */ = {
110 | isa = PBXNativeTarget;
111 | buildConfigurationList = 185076271D2A30FD005B327A /* Build configuration list for PBXNativeTarget "loadingAnimation" */;
112 | buildPhases = (
113 | 1850760C1D2A30FD005B327A /* Sources */,
114 | 1850760D1D2A30FD005B327A /* Frameworks */,
115 | 1850760E1D2A30FD005B327A /* Resources */,
116 | );
117 | buildRules = (
118 | );
119 | dependencies = (
120 | );
121 | name = loadingAnimation;
122 | productName = loadingAnimation;
123 | productReference = 185076101D2A30FD005B327A /* loadingAnimation.app */;
124 | productType = "com.apple.product-type.application";
125 | };
126 | /* End PBXNativeTarget section */
127 |
128 | /* Begin PBXProject section */
129 | 185076081D2A30FD005B327A /* Project object */ = {
130 | isa = PBXProject;
131 | attributes = {
132 | LastUpgradeCheck = 0730;
133 | ORGANIZATIONNAME = mark;
134 | TargetAttributes = {
135 | 1850760F1D2A30FD005B327A = {
136 | CreatedOnToolsVersion = 7.3.1;
137 | };
138 | };
139 | };
140 | buildConfigurationList = 1850760B1D2A30FD005B327A /* Build configuration list for PBXProject "loadingAnimation" */;
141 | compatibilityVersion = "Xcode 3.2";
142 | developmentRegion = English;
143 | hasScannedForEncodings = 0;
144 | knownRegions = (
145 | en,
146 | Base,
147 | );
148 | mainGroup = 185076071D2A30FD005B327A;
149 | productRefGroup = 185076111D2A30FD005B327A /* Products */;
150 | projectDirPath = "";
151 | projectRoot = "";
152 | targets = (
153 | 1850760F1D2A30FD005B327A /* loadingAnimation */,
154 | );
155 | };
156 | /* End PBXProject section */
157 |
158 | /* Begin PBXResourcesBuildPhase section */
159 | 1850760E1D2A30FD005B327A /* Resources */ = {
160 | isa = PBXResourcesBuildPhase;
161 | buildActionMask = 2147483647;
162 | files = (
163 | 185076331D2A317C005B327A /* Home_deviceSelect.png in Resources */,
164 | 185076231D2A30FD005B327A /* LaunchScreen.storyboard in Resources */,
165 | 185076201D2A30FD005B327A /* Assets.xcassets in Resources */,
166 | 1850761E1D2A30FD005B327A /* Main.storyboard in Resources */,
167 | );
168 | runOnlyForDeploymentPostprocessing = 0;
169 | };
170 | /* End PBXResourcesBuildPhase section */
171 |
172 | /* Begin PBXSourcesBuildPhase section */
173 | 1850760C1D2A30FD005B327A /* Sources */ = {
174 | isa = PBXSourcesBuildPhase;
175 | buildActionMask = 2147483647;
176 | files = (
177 | 1850761B1D2A30FD005B327A /* ViewController.m in Sources */,
178 | 1850763B1D2A32BA005B327A /* catergory.swift in Sources */,
179 | 185076181D2A30FD005B327A /* AppDelegate.m in Sources */,
180 | 1850763A1D2A32BA005B327A /* CABasicAnimation+Category.m in Sources */,
181 | 1850763C1D2A32BA005B327A /* LoadingView.m in Sources */,
182 | 185076151D2A30FD005B327A /* main.m in Sources */,
183 | );
184 | runOnlyForDeploymentPostprocessing = 0;
185 | };
186 | /* End PBXSourcesBuildPhase section */
187 |
188 | /* Begin PBXVariantGroup section */
189 | 1850761C1D2A30FD005B327A /* Main.storyboard */ = {
190 | isa = PBXVariantGroup;
191 | children = (
192 | 1850761D1D2A30FD005B327A /* Base */,
193 | );
194 | name = Main.storyboard;
195 | sourceTree = "";
196 | };
197 | 185076211D2A30FD005B327A /* LaunchScreen.storyboard */ = {
198 | isa = PBXVariantGroup;
199 | children = (
200 | 185076221D2A30FD005B327A /* Base */,
201 | );
202 | name = LaunchScreen.storyboard;
203 | sourceTree = "";
204 | };
205 | /* End PBXVariantGroup section */
206 |
207 | /* Begin XCBuildConfiguration section */
208 | 185076251D2A30FD005B327A /* Debug */ = {
209 | isa = XCBuildConfiguration;
210 | buildSettings = {
211 | ALWAYS_SEARCH_USER_PATHS = NO;
212 | CLANG_ANALYZER_NONNULL = YES;
213 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
214 | CLANG_CXX_LIBRARY = "libc++";
215 | CLANG_ENABLE_MODULES = YES;
216 | CLANG_ENABLE_OBJC_ARC = YES;
217 | CLANG_WARN_BOOL_CONVERSION = YES;
218 | CLANG_WARN_CONSTANT_CONVERSION = YES;
219 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
220 | CLANG_WARN_EMPTY_BODY = YES;
221 | CLANG_WARN_ENUM_CONVERSION = YES;
222 | CLANG_WARN_INT_CONVERSION = YES;
223 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
224 | CLANG_WARN_UNREACHABLE_CODE = YES;
225 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
226 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
227 | COPY_PHASE_STRIP = NO;
228 | DEBUG_INFORMATION_FORMAT = dwarf;
229 | ENABLE_STRICT_OBJC_MSGSEND = YES;
230 | ENABLE_TESTABILITY = YES;
231 | GCC_C_LANGUAGE_STANDARD = gnu99;
232 | GCC_DYNAMIC_NO_PIC = NO;
233 | GCC_NO_COMMON_BLOCKS = YES;
234 | GCC_OPTIMIZATION_LEVEL = 0;
235 | GCC_PREPROCESSOR_DEFINITIONS = (
236 | "DEBUG=1",
237 | "$(inherited)",
238 | );
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 = YES;
247 | ONLY_ACTIVE_ARCH = YES;
248 | SDKROOT = iphoneos;
249 | };
250 | name = Debug;
251 | };
252 | 185076261D2A30FD005B327A /* Release */ = {
253 | isa = XCBuildConfiguration;
254 | buildSettings = {
255 | ALWAYS_SEARCH_USER_PATHS = NO;
256 | CLANG_ANALYZER_NONNULL = YES;
257 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
258 | CLANG_CXX_LIBRARY = "libc++";
259 | CLANG_ENABLE_MODULES = YES;
260 | CLANG_ENABLE_OBJC_ARC = YES;
261 | CLANG_WARN_BOOL_CONVERSION = YES;
262 | CLANG_WARN_CONSTANT_CONVERSION = YES;
263 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
264 | CLANG_WARN_EMPTY_BODY = YES;
265 | CLANG_WARN_ENUM_CONVERSION = YES;
266 | CLANG_WARN_INT_CONVERSION = YES;
267 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
268 | CLANG_WARN_UNREACHABLE_CODE = YES;
269 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
270 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
271 | COPY_PHASE_STRIP = NO;
272 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
273 | ENABLE_NS_ASSERTIONS = NO;
274 | ENABLE_STRICT_OBJC_MSGSEND = YES;
275 | GCC_C_LANGUAGE_STANDARD = gnu99;
276 | GCC_NO_COMMON_BLOCKS = YES;
277 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
278 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
279 | GCC_WARN_UNDECLARED_SELECTOR = YES;
280 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
281 | GCC_WARN_UNUSED_FUNCTION = YES;
282 | GCC_WARN_UNUSED_VARIABLE = YES;
283 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
284 | MTL_ENABLE_DEBUG_INFO = NO;
285 | SDKROOT = iphoneos;
286 | VALIDATE_PRODUCT = YES;
287 | };
288 | name = Release;
289 | };
290 | 185076281D2A30FD005B327A /* Debug */ = {
291 | isa = XCBuildConfiguration;
292 | buildSettings = {
293 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
294 | CLANG_ENABLE_MODULES = YES;
295 | INFOPLIST_FILE = loadingAnimation/Info.plist;
296 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
298 | PRODUCT_BUNDLE_IDENTIFIER = "com.uml-tech.www.loadingAnimation";
299 | PRODUCT_NAME = "$(TARGET_NAME)";
300 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
301 | };
302 | name = Debug;
303 | };
304 | 185076291D2A30FD005B327A /* Release */ = {
305 | isa = XCBuildConfiguration;
306 | buildSettings = {
307 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
308 | CLANG_ENABLE_MODULES = YES;
309 | INFOPLIST_FILE = loadingAnimation/Info.plist;
310 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
311 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
312 | PRODUCT_BUNDLE_IDENTIFIER = "com.uml-tech.www.loadingAnimation";
313 | PRODUCT_NAME = "$(TARGET_NAME)";
314 | };
315 | name = Release;
316 | };
317 | /* End XCBuildConfiguration section */
318 |
319 | /* Begin XCConfigurationList section */
320 | 1850760B1D2A30FD005B327A /* Build configuration list for PBXProject "loadingAnimation" */ = {
321 | isa = XCConfigurationList;
322 | buildConfigurations = (
323 | 185076251D2A30FD005B327A /* Debug */,
324 | 185076261D2A30FD005B327A /* Release */,
325 | );
326 | defaultConfigurationIsVisible = 0;
327 | defaultConfigurationName = Release;
328 | };
329 | 185076271D2A30FD005B327A /* Build configuration list for PBXNativeTarget "loadingAnimation" */ = {
330 | isa = XCConfigurationList;
331 | buildConfigurations = (
332 | 185076281D2A30FD005B327A /* Debug */,
333 | 185076291D2A30FD005B327A /* Release */,
334 | );
335 | defaultConfigurationIsVisible = 0;
336 | defaultConfigurationName = Release;
337 | };
338 | /* End XCConfigurationList section */
339 | };
340 | rootObject = 185076081D2A30FD005B327A /* Project object */;
341 | }
342 |
--------------------------------------------------------------------------------