├── banner.jpg
├── preview_wtf.gif
├── SCActivityIndicatorView.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
├── SCActivityIndicatorView
├── ViewController.h
├── AppDelegate.h
├── main.m
├── UIView+ViewFrameGeometry.h
├── SCActivityIndicatorView.h
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.storyboard
├── Info.plist
├── AppDelegate.m
├── ViewController.m
├── UIView+ViewFrameGeometry.m
└── SCActivityIndicatorView.m
├── .gitignore
├── SCActivityIndicatorViewTests
├── Info.plist
└── SCActivityIndicatorViewTests.m
├── SCActivityIndicatorViewUITests
├── Info.plist
└── SCActivityIndicatorViewUITests.m
├── README.md
└── LICENSE
/banner.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SergioChan/SCActivityIndicatorView/HEAD/banner.jpg
--------------------------------------------------------------------------------
/preview_wtf.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SergioChan/SCActivityIndicatorView/HEAD/preview_wtf.gif
--------------------------------------------------------------------------------
/SCActivityIndicatorView.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // SCActivityIndicatorView
4 | //
5 | // Created by 叔 陈 on 15/12/10.
6 | // Copyright © 2015年 叔 陈. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // SCActivityIndicatorView
4 | //
5 | // Created by 叔 陈 on 15/12/10.
6 | // Copyright © 2015年 叔 陈. 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 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // SCActivityIndicatorView
4 | //
5 | // Created by 叔 陈 on 15/12/10.
6 | // Copyright © 2015年 叔 陈. 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 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | build/
4 | *.pbxuser
5 | !default.pbxuser
6 | *.mode1v3
7 | !default.mode1v3
8 | *.mode2v3
9 | !default.mode2v3
10 | *.perspectivev3
11 | !default.perspectivev3
12 | xcuserdata
13 | *.xccheckout
14 | *.moved-aside
15 | DerivedData
16 | *.hmap
17 | *.ipa
18 | *.xcuserstate
19 |
20 | # CocoaPods
21 | #
22 | # We recommend against adding the Pods directory to your .gitignore. However
23 | # you should judge for yourself, the pros and cons are mentioned at:
24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
25 | #
26 | #Pods/
27 |
--------------------------------------------------------------------------------
/SCActivityIndicatorViewTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/SCActivityIndicatorViewUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SCActivityIndicatorView
2 | An indicator view providing you more freedom to control and customize it.
3 | 一个魔性的菊花控件,目前支持横向添加**自定义个数**的菊花。
4 | 单个菊花的时候,和系统的indicatorView效果是一致的,但是提供了更大的自定义空间。
5 |
6 | Something just for fun.
7 | (´o・┏ω┓・o`) 求个star。
8 |
9 | ## 预览 Preview
10 | 
11 |
12 | 
13 |
14 |
15 | ## 特别 Special
16 |
17 | * 点击屏幕可以暂停动画并且继续动画
18 | * 通过设置`hideWhenStopped`在停止动画的时候隐藏view
19 |
20 | ## 用法 Usage
21 |
22 | 通过初始化方法
23 |
24 | ```Objective-C
25 | self.indicator = [[SCActivityIndicatorView alloc]initWithOrigin:CGPointMake(ScreenWidth/2.0f - 120.0f, 340.0f) width:60.0f multipleCount:4];
26 | ```
27 |
28 | 初始化指定菊花个数的indicator。并且添加到你需要的view上即可。
29 | ༼´◓ɷ◔`༽ Simple as that!
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Sergio Chan
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 |
23 |
--------------------------------------------------------------------------------
/SCActivityIndicatorViewTests/SCActivityIndicatorViewTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // SCActivityIndicatorViewTests.m
3 | // SCActivityIndicatorViewTests
4 | //
5 | // Created by 叔 陈 on 15/12/10.
6 | // Copyright © 2015年 叔 陈. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface SCActivityIndicatorViewTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation SCActivityIndicatorViewTests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 | // Put setup code here. This method is called before the invocation of each test method in the class.
20 | }
21 |
22 | - (void)tearDown {
23 | // Put teardown code here. This method is called after the invocation of each test method in the class.
24 | [super tearDown];
25 | }
26 |
27 | - (void)testExample {
28 | // This is an example of a functional test case.
29 | // Use XCTAssert and related functions to verify your tests produce the correct results.
30 | }
31 |
32 | - (void)testPerformanceExample {
33 | // This is an example of a performance test case.
34 | [self measureBlock:^{
35 | // Put the code you want to measure the time of here.
36 | }];
37 | }
38 |
39 | @end
40 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/UIView+ViewFrameGeometry.h:
--------------------------------------------------------------------------------
1 | /*
2 | Erica Sadun, http://ericasadun.com
3 | iPhone Developer's Cookbook, 3.0 Edition
4 | BSD License, Use at your own risk
5 | */
6 |
7 | #import
8 |
9 | #define ScreenWidth [[UIScreen mainScreen] bounds].size.width
10 | #define ScreenHeight [[UIScreen mainScreen] bounds].size.height
11 |
12 | CGPoint CGRectGetCenter(CGRect rect);
13 | CGRect CGRectMoveToCenter(CGRect rect, CGPoint center);
14 | double radians(float degrees);
15 | CATransform3D getTransForm3DWithAngle(CGFloat angle);
16 |
17 | @interface UIView (ViewFrameGeometry)
18 | @property CGPoint origin;
19 | @property CGSize size;
20 |
21 | @property (readonly) CGPoint bottomLeft;
22 | @property (readonly) CGPoint bottomRight;
23 | @property (readonly) CGPoint topRight;
24 |
25 | @property CGFloat height;
26 | @property CGFloat width;
27 |
28 | @property CGFloat top;
29 | @property CGFloat left;
30 |
31 | @property CGFloat bottom;
32 | @property CGFloat right;
33 |
34 | - (void) moveBy: (CGPoint) delta;
35 | - (void) scaleBy: (CGFloat) scaleFactor;
36 | - (void) fitInSize: (CGSize) aSize;
37 |
38 | - (UIImage *)convertViewToImage;
39 | @end
--------------------------------------------------------------------------------
/SCActivityIndicatorView/SCActivityIndicatorView.h:
--------------------------------------------------------------------------------
1 | //
2 | // SCActivityIndicatorView.h
3 | // SCActivityIndicatorView
4 | //
5 | // Created by 叔 陈 on 15/12/10.
6 | // Copyright © 2015年 叔 陈. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "UIView+ViewFrameGeometry.h"
11 |
12 | #define SCColor_1 [UIColor colorWithRed:242/255.0f green:242/255.0f blue:242/255.0f alpha:1.0f]
13 |
14 | @interface SCActivityIndicatorView : UIView
15 |
16 | /**
17 | * 是否在转菊花
18 | */
19 | @property (nonatomic) BOOL animating;
20 |
21 | /**
22 | * 停止菊花时是否隐藏
23 | */
24 | @property (nonatomic) BOOL hideWhenStopped;
25 |
26 | /**
27 | * 自定义菊花颜色
28 | */
29 | @property (nonatomic, strong) UIColor *customColor;
30 |
31 | /**
32 | * 每圈菊花的时长
33 | */
34 | @property (nonatomic) CGFloat loopDuration;
35 |
36 | /**
37 | * 开始角度,实现多菊花的时候需要用到。
38 | */
39 | @property (nonatomic) CGFloat startDegree;
40 |
41 | /**
42 | * 菊花中心距离菊花瓣的间隔距离
43 | */
44 | @property (nonatomic) CGFloat marginRadius;
45 |
46 |
47 | - (id)initWithOrigin:(CGPoint)origin width:(CGFloat)width;
48 | - (id)initWithOrigin:(CGPoint)origin width:(CGFloat)width multipleCount:(NSInteger)multiplier;
49 | /**
50 | * 开始或继续动画
51 | */
52 | - (void)startAnimating;
53 | - (void)stopAnimating;
54 | - (void)removeAnimating;
55 | - (BOOL)isAnimating;
56 | @end
57 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/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 | }
--------------------------------------------------------------------------------
/SCActivityIndicatorViewUITests/SCActivityIndicatorViewUITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // SCActivityIndicatorViewUITests.m
3 | // SCActivityIndicatorViewUITests
4 | //
5 | // Created by 叔 陈 on 15/12/10.
6 | // Copyright © 2015年 叔 陈. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface SCActivityIndicatorViewUITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation SCActivityIndicatorViewUITests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 |
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 |
22 | // In UI tests it is usually best to stop immediately when a failure occurs.
23 | self.continueAfterFailure = NO;
24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
25 | [[[XCUIApplication alloc] init] launch];
26 |
27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
28 | }
29 |
30 | - (void)tearDown {
31 | // Put teardown code here. This method is called after the invocation of each test method in the class.
32 | [super tearDown];
33 | }
34 |
35 | - (void)testExample {
36 | // Use recording to get started writing UI tests.
37 | // Use XCTAssert and related functions to verify your tests produce the correct results.
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/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 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/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 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/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 | Main
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UIStatusBarStyle
34 | UIStatusBarStyleLightContent
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationLandscapeRight
39 |
40 | UIViewControllerBasedStatusBarAppearance
41 |
42 | UISupportedInterfaceOrientations~ipad
43 |
44 | UIInterfaceOrientationPortrait
45 | UIInterfaceOrientationPortraitUpsideDown
46 | UIInterfaceOrientationLandscapeLeft
47 | UIInterfaceOrientationLandscapeRight
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // SCActivityIndicatorView
4 | //
5 | // Created by 叔 陈 on 15/12/10.
6 | // Copyright © 2015年 叔 陈. 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 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // SCActivityIndicatorView
4 | //
5 | // Created by 叔 陈 on 15/12/10.
6 | // Copyright © 2015年 叔 陈. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "SCActivityIndicatorView.h"
11 |
12 | @interface ViewController ()
13 | @property (nonatomic, strong) SCActivityIndicatorView *indicator_0;
14 | @property (nonatomic, strong) SCActivityIndicatorView *indicator_1;
15 | @property (nonatomic, strong) SCActivityIndicatorView *indicator_2;
16 | @property (nonatomic, strong) SCActivityIndicatorView *indicator_3;
17 | @end
18 |
19 | @implementation ViewController
20 |
21 | - (void)viewDidLoad {
22 | [super viewDidLoad];
23 |
24 | self.indicator_0 = [[SCActivityIndicatorView alloc]initWithOrigin:CGPointMake(ScreenWidth/2.0f - 120.0f, 100.0f) width:60.0f multipleCount:1];
25 | self.indicator_1 = [[SCActivityIndicatorView alloc]initWithOrigin:CGPointMake(ScreenWidth/2.0f - 120.0f, 180.0f) width:60.0f multipleCount:2];
26 | self.indicator_2 = [[SCActivityIndicatorView alloc]initWithOrigin:CGPointMake(ScreenWidth/2.0f - 120.0f, 260.0f) width:60.0f multipleCount:3];
27 | self.indicator_3 = [[SCActivityIndicatorView alloc]initWithOrigin:CGPointMake(ScreenWidth/2.0f - 120.0f, 340.0f) width:60.0f multipleCount:4];
28 | //self.indicator.hideWhenStopped = YES;
29 | //self.indicator.customColor = [UIColor redColor];
30 | //self.indicator.loopDuration = 2.0f;
31 | // [self.view addSubview:self.indicator_0];
32 | [self.view addSubview:self.indicator_1];
33 | // [self.view addSubview:self.indicator_2];
34 | // [self.view addSubview:self.indicator_3];
35 | }
36 |
37 | - (void)fuck
38 | {
39 | if(self.indicator_0.isAnimating)
40 | {
41 | [self.indicator_0 stopAnimating];
42 | }
43 | else
44 | {
45 | [self.indicator_0 startAnimating];
46 | }
47 | if(self.indicator_1.isAnimating)
48 | {
49 | [self.indicator_1 stopAnimating];
50 | }
51 | else
52 | {
53 | [self.indicator_1 startAnimating];
54 | }
55 | if(self.indicator_2.isAnimating)
56 | {
57 | [self.indicator_2 stopAnimating];
58 | }
59 | else
60 | {
61 | [self.indicator_2 startAnimating];
62 | }
63 | if(self.indicator_3.isAnimating)
64 | {
65 | [self.indicator_3 stopAnimating];
66 | }
67 | else
68 | {
69 | [self.indicator_3 startAnimating];
70 | }
71 | }
72 |
73 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
74 | {
75 | [self fuck];
76 | }
77 |
78 | - (void)didReceiveMemoryWarning {
79 | [super didReceiveMemoryWarning];
80 | // Dispose of any resources that can be recreated.
81 | }
82 |
83 | @end
84 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView/UIView+ViewFrameGeometry.m:
--------------------------------------------------------------------------------
1 | /*
2 | Erica Sadun, http://ericasadun.com
3 | iPhone Developer's Cookbook, 3.0 Edition
4 | BSD License, Use at your own risk
5 | */
6 |
7 | #import "UIView+ViewFrameGeometry.h"
8 |
9 | CGPoint CGRectGetCenter(CGRect rect)
10 | {
11 | CGPoint pt;
12 | pt.x = CGRectGetMidX(rect);
13 | pt.y = CGRectGetMidY(rect);
14 | return pt;
15 | }
16 |
17 | double radians(float degrees) {
18 | return ( degrees * 3.14159265 ) / 180.0;
19 | }
20 |
21 | CATransform3D getTransForm3DWithAngle(CGFloat angle)
22 | {
23 | CATransform3D transform = CATransform3DIdentity;
24 | transform = CATransform3DRotate(transform, angle, 0, 0, 1);
25 | return transform;
26 | }
27 |
28 | CGRect CGRectMoveToCenter(CGRect rect, CGPoint center)
29 | {
30 | CGRect newrect = CGRectZero;
31 | newrect.origin.x = center.x-CGRectGetMidX(rect);
32 | newrect.origin.y = center.y-CGRectGetMidY(rect);
33 | newrect.size = rect.size;
34 | return newrect;
35 | }
36 |
37 | @implementation UIView (ViewGeometry)
38 |
39 | // Retrieve and set the origin
40 | - (CGPoint) origin
41 | {
42 | return self.frame.origin;
43 | }
44 |
45 | - (void) setOrigin: (CGPoint) aPoint
46 | {
47 | CGRect newframe = self.frame;
48 | newframe.origin = aPoint;
49 | self.frame = newframe;
50 | }
51 |
52 |
53 | // Retrieve and set the size
54 | - (CGSize) size
55 | {
56 | return self.frame.size;
57 | }
58 |
59 | - (void) setSize: (CGSize) aSize
60 | {
61 | CGRect newframe = self.frame;
62 | newframe.size = aSize;
63 | self.frame = newframe;
64 | }
65 |
66 | // Query other frame locations
67 | - (CGPoint) bottomRight
68 | {
69 | CGFloat x = self.frame.origin.x + self.frame.size.width;
70 | CGFloat y = self.frame.origin.y + self.frame.size.height;
71 | return CGPointMake(x, y);
72 | }
73 |
74 | - (CGPoint) bottomLeft
75 | {
76 | CGFloat x = self.frame.origin.x;
77 | CGFloat y = self.frame.origin.y + self.frame.size.height;
78 | return CGPointMake(x, y);
79 | }
80 |
81 | - (CGPoint) topRight
82 | {
83 | CGFloat x = self.frame.origin.x + self.frame.size.width;
84 | CGFloat y = self.frame.origin.y;
85 | return CGPointMake(x, y);
86 | }
87 |
88 |
89 | // Retrieve and set height, width, top, bottom, left, right
90 | - (CGFloat) height
91 | {
92 | return self.frame.size.height;
93 | }
94 |
95 | - (void) setHeight: (CGFloat) newheight
96 | {
97 | CGRect newframe = self.frame;
98 | newframe.size.height = newheight;
99 | self.frame = newframe;
100 | }
101 |
102 | - (CGFloat) width
103 | {
104 | return self.frame.size.width;
105 | }
106 |
107 | - (void) setWidth: (CGFloat) newwidth
108 | {
109 | CGRect newframe = self.frame;
110 | newframe.size.width = newwidth;
111 | self.frame = newframe;
112 | }
113 |
114 | - (CGFloat) top
115 | {
116 | return self.frame.origin.y;
117 | }
118 |
119 | - (void) setTop: (CGFloat) newtop
120 | {
121 | CGRect newframe = self.frame;
122 | newframe.origin.y = newtop;
123 | self.frame = newframe;
124 | }
125 |
126 | - (CGFloat) left
127 | {
128 | return self.frame.origin.x;
129 | }
130 |
131 | - (void) setLeft: (CGFloat) newleft
132 | {
133 | CGRect newframe = self.frame;
134 | newframe.origin.x = newleft;
135 | self.frame = newframe;
136 | }
137 |
138 | - (CGFloat) bottom
139 | {
140 | return self.frame.origin.y + self.frame.size.height;
141 | }
142 |
143 | - (void) setBottom: (CGFloat) newbottom
144 | {
145 | CGRect newframe = self.frame;
146 | newframe.origin.y = newbottom - self.frame.size.height;
147 | self.frame = newframe;
148 | }
149 |
150 | - (CGFloat) right
151 | {
152 | return self.frame.origin.x + self.frame.size.width;
153 | }
154 |
155 | - (void) setRight: (CGFloat) newright
156 | {
157 | CGFloat delta = newright - (self.frame.origin.x + self.frame.size.width);
158 | CGRect newframe = self.frame;
159 | newframe.origin.x += delta ;
160 | self.frame = newframe;
161 | }
162 |
163 | // Move via offset
164 | - (void) moveBy: (CGPoint) delta
165 | {
166 | CGPoint newcenter = self.center;
167 | newcenter.x += delta.x;
168 | newcenter.y += delta.y;
169 | self.center = newcenter;
170 | }
171 |
172 | // Scaling
173 | - (void) scaleBy: (CGFloat) scaleFactor
174 | {
175 | CGRect newframe = self.frame;
176 | newframe.size.width *= scaleFactor;
177 | newframe.size.height *= scaleFactor;
178 | self.frame = newframe;
179 | }
180 |
181 | // Ensure that both dimensions fit within the given size by scaling down
182 | - (void) fitInSize: (CGSize) aSize
183 | {
184 | CGFloat scale;
185 | CGRect newframe = self.frame;
186 |
187 | if (newframe.size.height && (newframe.size.height > aSize.height))
188 | {
189 | scale = aSize.height / newframe.size.height;
190 | newframe.size.width *= scale;
191 | newframe.size.height *= scale;
192 | }
193 |
194 | if (newframe.size.width && (newframe.size.width >= aSize.width))
195 | {
196 | scale = aSize.width / newframe.size.width;
197 | newframe.size.width *= scale;
198 | newframe.size.height *= scale;
199 | }
200 |
201 | self.frame = newframe;
202 | }
203 |
204 | - (UIImage *)convertViewToImage
205 | {
206 | CGSize s = self.bounds.size;
207 | //下面方法,第一个参数表示区域大小。
208 | //第二个参数表示是否是非透明的。如果需要显示半透明效果,需要传NO,否则传YES。
209 | //第三个参数就是屏幕密度。
210 |
211 | UIGraphicsBeginImageContextWithOptions(s, NO, [UIScreen mainScreen].scale);
212 | [self.layer renderInContext:UIGraphicsGetCurrentContext()];
213 | UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
214 | UIGraphicsEndImageContext();
215 | return image;
216 | }
217 | @end
--------------------------------------------------------------------------------
/SCActivityIndicatorView/SCActivityIndicatorView.m:
--------------------------------------------------------------------------------
1 | //
2 | // SCActivityIndicatorView.m
3 | // SCActivityIndicatorView
4 | //
5 | // Created by 叔 陈 on 15/12/10.
6 | // Copyright © 2015年 叔 陈. All rights reserved.
7 | //
8 |
9 | #import "SCActivityIndicatorView.h"
10 | #define NUMBER_OF_LOOP 12
11 |
12 | @interface SCActivityIndicatorView()
13 | {
14 | CGFloat _marginRadius;
15 | CGFloat _indicatorWidth;
16 | CGFloat _indicatorLength;
17 | CGFloat _indicatorRadius;
18 | CGPoint _indicatorCenterPoint;
19 |
20 | NSInteger _multiplier;
21 | }
22 | @end
23 |
24 | @implementation SCActivityIndicatorView
25 |
26 | - (id)initWithOrigin:(CGPoint)origin width:(CGFloat)width multipleCount:(NSInteger)multiplier
27 | {
28 | assert(multiplier>0);
29 | self = [super initWithFrame:CGRectMake(origin.x, origin.y, width * multiplier, width)];
30 | if(self)
31 | {
32 | self.customColor = SCColor_1;
33 | self.loopDuration = 1.5f * multiplier;
34 | self.animating = NO;
35 | self.hideWhenStopped = NO;
36 | self.alpha = 0.0f;
37 | self.startDegree = -360.0f;
38 | _multiplier = multiplier;
39 |
40 | _indicatorWidth = width;
41 | _indicatorCenterPoint = CGPointMake(width/2.0f, width/2.0f);
42 | _marginRadius = (width/2.0f) / 2.0f;
43 | _indicatorLength = (width/2.0f) - _marginRadius;
44 | _indicatorRadius = 1.5f;
45 | }
46 | return self;
47 | }
48 |
49 | - (id)initWithOrigin:(CGPoint)origin width:(CGFloat)width
50 | {
51 | self = [super initWithFrame:CGRectMake(origin.x, origin.y, width, width)];
52 | if(self)
53 | {
54 | self.customColor = SCColor_1;
55 | self.loopDuration = 1.5f;
56 | self.animating = NO;
57 | self.hideWhenStopped = NO;
58 | self.alpha = 0.0f;
59 | self.startDegree = 0.0f;
60 | _multiplier = 1;
61 |
62 | _indicatorWidth = width;
63 | _indicatorCenterPoint = CGPointMake(width/2.0f, width/2.0f);
64 | _marginRadius = (width/2.0f) / 2.0f;
65 | _indicatorLength = (width/2.0f) - _marginRadius;
66 | _indicatorRadius = 1.5f;
67 | }
68 | return self;
69 | }
70 |
71 | - (UIImage *)viewFrameImageWithIndex:(NSInteger)index
72 | {
73 | UIGraphicsBeginImageContextWithOptions(CGSizeMake(self.width, self.height), NO, [UIScreen mainScreen].nativeScale);
74 | CGContextRef context = UIGraphicsGetCurrentContext();
75 |
76 | CGFloat startDegree = self.startDegree;
77 | BOOL verse = YES;
78 |
79 | NSInteger circle_count = 1;
80 | for(NSInteger i=0;i< NUMBER_OF_LOOP * _multiplier + 1;i++)
81 | {
82 | CGPoint currentCenter = CGPointMake(_indicatorWidth/2.0f + (circle_count - 1) * ((_indicatorWidth/2.0f) + _marginRadius), _indicatorWidth/2.0f);
83 |
84 | UIBezierPath *path = [UIBezierPath bezierPath];
85 |
86 | CGFloat cosin = cosf(radians(startDegree));
87 | CGFloat sin = sinf(radians(startDegree));
88 |
89 | CGPoint p0 = CGPointMake(currentCenter.x + cosin * _marginRadius, currentCenter.y + sin * _marginRadius);
90 |
91 | CGPoint p1 = CGPointMake(p0.x + _indicatorRadius * sin, p0.y - cosin * _indicatorRadius);
92 | CGPoint p2 = CGPointMake(p0.x - _indicatorRadius * sin, p0.y + cosin * _indicatorRadius);
93 | CGPoint p11 = CGPointMake(p1.x + cosin * _indicatorRadius, p1.y + sin * _indicatorRadius);
94 | CGPoint p21 = CGPointMake(p2.x + cosin * _indicatorRadius, p2.y + sin * _indicatorRadius);
95 |
96 | CGPoint q0 = CGPointMake(currentCenter.x + cosin * (_indicatorWidth/2.0f) , currentCenter.y + sin * (_indicatorWidth/2.0f));
97 |
98 | CGPoint q1 = CGPointMake(q0.x + _indicatorRadius * sin, q0.y - cosin * _indicatorRadius);
99 | CGPoint q2 = CGPointMake(q0.x - _indicatorRadius * sin, q0.y + cosin * _indicatorRadius);
100 | CGPoint q11 = CGPointMake(q1.x - cosin * _indicatorRadius, q1.y - sin * _indicatorRadius);
101 | CGPoint q21 = CGPointMake(q2.x - cosin * _indicatorRadius, q2.y - sin * _indicatorRadius);
102 |
103 | [path moveToPoint:p0];
104 | [path addQuadCurveToPoint:p11 controlPoint:p1];
105 | [path addLineToPoint:q11];
106 | [path addQuadCurveToPoint:q0 controlPoint:q1];
107 | [path addQuadCurveToPoint:q21 controlPoint:q2];
108 | [path addLineToPoint:p21];
109 | [path addQuadCurveToPoint:p0 controlPoint:p2];
110 | [path closePath];
111 |
112 | CGContextAddPath(context, path.CGPath);
113 |
114 |
115 | if(startDegree == 0.0f && verse == YES)
116 | {
117 | if(circle_count < _multiplier)
118 | {
119 | circle_count += 1;
120 | startDegree = 180.0f;
121 | verse = NO;
122 | }
123 | }
124 | else if(startDegree == 0.0f && verse == NO)
125 | {
126 | if(circle_count < _multiplier)
127 | {
128 | circle_count += 1;
129 | startDegree = -180.0f;
130 | verse = YES;
131 | }
132 | }
133 | else if(startDegree == -180.0f && verse == NO)
134 | {
135 | if(circle_count == _multiplier)
136 | {
137 | circle_count -= 1;
138 | startDegree = 0.0f;
139 | verse = YES;
140 | }
141 | }
142 | else if(startDegree == 180.0f && verse == YES)
143 | {
144 | if(circle_count > 1)
145 | {
146 | circle_count -= 1;
147 | startDegree = 0.0f;
148 | verse = NO;
149 |
150 | }
151 | }
152 |
153 | if(verse)
154 | {
155 | startDegree += 30.0f;
156 | }
157 | else
158 | {
159 | startDegree -= 30.0f;
160 | }
161 |
162 | UIColor *color = [self fillColorForIndex:index forViewIndex:i];
163 |
164 | CGContextSetFillColorWithColor(context, color.CGColor);
165 | CGContextSetStrokeColorWithColor(context, color.CGColor);
166 | CGContextDrawPath(context, kCGPathFillStroke);
167 | }
168 | UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
169 | UIGraphicsEndImageContext();
170 |
171 | return image;
172 | }
173 |
174 | - (void)startAnimating
175 | {
176 | if(self.animating)
177 | {
178 | return;
179 | }
180 |
181 | if(self.alpha == 0.0f)
182 | {
183 | self.hidden = NO;
184 | self.animating = YES;
185 |
186 | [self.layer addAnimation:[self loopAnimation] forKey:@"contents"];
187 |
188 | [UIView animateWithDuration:0.3f animations:^{
189 | self.alpha = 1.0f;
190 | } completion:^(BOOL finished) {
191 | }];
192 | }
193 | else
194 | {
195 | // 恢复菊花动画
196 | self.hidden = NO;
197 | self.animating = YES;
198 |
199 | CFTimeInterval pausedTime = [self.layer timeOffset];
200 | self.layer.speed = 1.0;
201 | self.layer.timeOffset = 0.0;
202 | self.layer.beginTime = 0.0;
203 |
204 | CFTimeInterval timeSincePause = [self.layer convertTime:CACurrentMediaTime() fromLayer:nil] - pausedTime;
205 | self.layer.beginTime = timeSincePause;
206 | }
207 | }
208 |
209 | - (void)stopAnimating
210 | {
211 | if(!self.animating)
212 | {
213 | return;
214 | }
215 | self.animating = NO;
216 |
217 | if(self.hideWhenStopped)
218 | {
219 | [self.layer removeAnimationForKey:@"contents"];
220 | [UIView animateWithDuration:0.3f animations:^{
221 | self.alpha = 0.0f;
222 | } completion:^(BOOL finished) {
223 | self.hidden = YES;
224 | }];
225 | }
226 | else
227 | {
228 | // 不隐藏所以就暂停动画
229 | CFTimeInterval pausedTime = [self.layer convertTime:CACurrentMediaTime() fromLayer:nil];
230 | self.layer.speed = 0.0;
231 | self.layer.timeOffset = pausedTime;
232 | }
233 | }
234 |
235 | - (void)removeAnimating
236 | {
237 | self.hideWhenStopped = YES;
238 | [self stopAnimating];
239 | }
240 |
241 | - (BOOL)isAnimating
242 | {
243 | return self.animating;
244 | }
245 |
246 | - (CAKeyframeAnimation *)loopAnimation
247 | {
248 | NSMutableArray *tmp = [NSMutableArray array];
249 | for(NSInteger i=0;i= NUMBER_OF_LOOP * _multiplier - 3)
276 | {
277 | if(t == 1 || t == NUMBER_OF_LOOP * _multiplier - 1)
278 | {
279 | color = [UIColor colorWithRed:(components[0]-0.1f) green:(components[1]-0.1f) blue:(components[2]-0.1f) alpha:1.0f];
280 | }
281 | else if(t == 2 || t == NUMBER_OF_LOOP * _multiplier - 2)
282 | {
283 | color = [UIColor colorWithRed:(components[0]-0.2f) green:(components[1]-0.2f) blue:(components[2]-0.2f) alpha:1.0f];
284 | }
285 | else if(i == index)
286 | {
287 | color = self.customColor;
288 | }
289 | else if((t == 3 || t == NUMBER_OF_LOOP * _multiplier - 3) || (t == 4 || t == NUMBER_OF_LOOP * _multiplier - 4))
290 | {
291 | color = [UIColor colorWithRed:(components[0]-0.5f) green:(components[1]-0.5f) blue:(components[2]-0.5f) alpha:1.0f];
292 | }
293 | else
294 | {
295 | color = [UIColor clearColor];
296 | }
297 | }
298 | else
299 | {
300 | if(t == 1)
301 | {
302 | color = [UIColor colorWithRed:(components[0]-0.1f) green:(components[1]-0.1f) blue:(components[2]-0.1f) alpha:1.0f];
303 | }
304 | else if(t == 2)
305 | {
306 | color = [UIColor colorWithRed:(components[0]-0.2f) green:(components[1]-0.2f) blue:(components[2]-0.2f) alpha:1.0f];
307 | }
308 | else if(i == index)
309 | {
310 | color = self.customColor;
311 | }
312 | else if(t == 3 || t == 4)
313 | {
314 | color = [UIColor colorWithRed:(components[0]-0.5f) green:(components[1]-0.5f) blue:(components[2]-0.5f) alpha:1.0f];
315 | }
316 | else
317 | {
318 | color = [UIColor clearColor];
319 | }
320 | }
321 | return color;
322 | }
323 | @end
324 |
--------------------------------------------------------------------------------
/SCActivityIndicatorView.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 504C53751C19104A00A748A7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 504C53741C19104A00A748A7 /* main.m */; };
11 | 504C53781C19104A00A748A7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 504C53771C19104A00A748A7 /* AppDelegate.m */; };
12 | 504C537B1C19104A00A748A7 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 504C537A1C19104A00A748A7 /* ViewController.m */; };
13 | 504C537E1C19104A00A748A7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504C537C1C19104A00A748A7 /* Main.storyboard */; };
14 | 504C53801C19104A00A748A7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504C537F1C19104A00A748A7 /* Assets.xcassets */; };
15 | 504C53831C19104A00A748A7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504C53811C19104A00A748A7 /* LaunchScreen.storyboard */; };
16 | 504C538E1C19104A00A748A7 /* SCActivityIndicatorViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 504C538D1C19104A00A748A7 /* SCActivityIndicatorViewTests.m */; };
17 | 504C53991C19104A00A748A7 /* SCActivityIndicatorViewUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 504C53981C19104A00A748A7 /* SCActivityIndicatorViewUITests.m */; };
18 | 504C53AE1C1910DA00A748A7 /* SCActivityIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 504C53AD1C1910DA00A748A7 /* SCActivityIndicatorView.m */; };
19 | 50ECE1021C1DBD8A00210D06 /* UIView+ViewFrameGeometry.m in Sources */ = {isa = PBXBuildFile; fileRef = 50ECE1011C1DBD8A00210D06 /* UIView+ViewFrameGeometry.m */; };
20 | /* End PBXBuildFile section */
21 |
22 | /* Begin PBXContainerItemProxy section */
23 | 504C538A1C19104A00A748A7 /* PBXContainerItemProxy */ = {
24 | isa = PBXContainerItemProxy;
25 | containerPortal = 504C53681C19104A00A748A7 /* Project object */;
26 | proxyType = 1;
27 | remoteGlobalIDString = 504C536F1C19104A00A748A7;
28 | remoteInfo = SCActivityIndicatorView;
29 | };
30 | 504C53951C19104A00A748A7 /* PBXContainerItemProxy */ = {
31 | isa = PBXContainerItemProxy;
32 | containerPortal = 504C53681C19104A00A748A7 /* Project object */;
33 | proxyType = 1;
34 | remoteGlobalIDString = 504C536F1C19104A00A748A7;
35 | remoteInfo = SCActivityIndicatorView;
36 | };
37 | /* End PBXContainerItemProxy section */
38 |
39 | /* Begin PBXFileReference section */
40 | 504C53701C19104A00A748A7 /* SCActivityIndicatorView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SCActivityIndicatorView.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 504C53741C19104A00A748A7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
42 | 504C53761C19104A00A748A7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
43 | 504C53771C19104A00A748A7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
44 | 504C53791C19104A00A748A7 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
45 | 504C537A1C19104A00A748A7 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
46 | 504C537D1C19104A00A748A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
47 | 504C537F1C19104A00A748A7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
48 | 504C53821C19104A00A748A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
49 | 504C53841C19104A00A748A7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
50 | 504C53891C19104A00A748A7 /* SCActivityIndicatorViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SCActivityIndicatorViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
51 | 504C538D1C19104A00A748A7 /* SCActivityIndicatorViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SCActivityIndicatorViewTests.m; sourceTree = ""; };
52 | 504C538F1C19104A00A748A7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
53 | 504C53941C19104A00A748A7 /* SCActivityIndicatorViewUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SCActivityIndicatorViewUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
54 | 504C53981C19104A00A748A7 /* SCActivityIndicatorViewUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SCActivityIndicatorViewUITests.m; sourceTree = ""; };
55 | 504C539A1C19104A00A748A7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
56 | 504C53AC1C1910DA00A748A7 /* SCActivityIndicatorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SCActivityIndicatorView.h; sourceTree = ""; };
57 | 504C53AD1C1910DA00A748A7 /* SCActivityIndicatorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SCActivityIndicatorView.m; sourceTree = ""; };
58 | 50ECE1001C1DBD8A00210D06 /* UIView+ViewFrameGeometry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+ViewFrameGeometry.h"; sourceTree = ""; };
59 | 50ECE1011C1DBD8A00210D06 /* UIView+ViewFrameGeometry.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+ViewFrameGeometry.m"; sourceTree = ""; };
60 | /* End PBXFileReference section */
61 |
62 | /* Begin PBXFrameworksBuildPhase section */
63 | 504C536D1C19104A00A748A7 /* Frameworks */ = {
64 | isa = PBXFrameworksBuildPhase;
65 | buildActionMask = 2147483647;
66 | files = (
67 | );
68 | runOnlyForDeploymentPostprocessing = 0;
69 | };
70 | 504C53861C19104A00A748A7 /* Frameworks */ = {
71 | isa = PBXFrameworksBuildPhase;
72 | buildActionMask = 2147483647;
73 | files = (
74 | );
75 | runOnlyForDeploymentPostprocessing = 0;
76 | };
77 | 504C53911C19104A00A748A7 /* Frameworks */ = {
78 | isa = PBXFrameworksBuildPhase;
79 | buildActionMask = 2147483647;
80 | files = (
81 | );
82 | runOnlyForDeploymentPostprocessing = 0;
83 | };
84 | /* End PBXFrameworksBuildPhase section */
85 |
86 | /* Begin PBXGroup section */
87 | 504C53671C19104A00A748A7 = {
88 | isa = PBXGroup;
89 | children = (
90 | 504C53721C19104A00A748A7 /* SCActivityIndicatorView */,
91 | 504C538C1C19104A00A748A7 /* SCActivityIndicatorViewTests */,
92 | 504C53971C19104A00A748A7 /* SCActivityIndicatorViewUITests */,
93 | 504C53711C19104A00A748A7 /* Products */,
94 | );
95 | sourceTree = "";
96 | };
97 | 504C53711C19104A00A748A7 /* Products */ = {
98 | isa = PBXGroup;
99 | children = (
100 | 504C53701C19104A00A748A7 /* SCActivityIndicatorView.app */,
101 | 504C53891C19104A00A748A7 /* SCActivityIndicatorViewTests.xctest */,
102 | 504C53941C19104A00A748A7 /* SCActivityIndicatorViewUITests.xctest */,
103 | );
104 | name = Products;
105 | sourceTree = "";
106 | };
107 | 504C53721C19104A00A748A7 /* SCActivityIndicatorView */ = {
108 | isa = PBXGroup;
109 | children = (
110 | 504C53A81C19107000A748A7 /* Controller */,
111 | 504C53A71C19106B00A748A7 /* Util */,
112 | 504C53A61C19106600A748A7 /* View */,
113 | 504C53731C19104A00A748A7 /* Supporting Files */,
114 | );
115 | path = SCActivityIndicatorView;
116 | sourceTree = "";
117 | };
118 | 504C53731C19104A00A748A7 /* Supporting Files */ = {
119 | isa = PBXGroup;
120 | children = (
121 | 504C53761C19104A00A748A7 /* AppDelegate.h */,
122 | 504C53771C19104A00A748A7 /* AppDelegate.m */,
123 | 504C537C1C19104A00A748A7 /* Main.storyboard */,
124 | 504C537F1C19104A00A748A7 /* Assets.xcassets */,
125 | 504C53811C19104A00A748A7 /* LaunchScreen.storyboard */,
126 | 504C53841C19104A00A748A7 /* Info.plist */,
127 | 504C53741C19104A00A748A7 /* main.m */,
128 | );
129 | name = "Supporting Files";
130 | sourceTree = "";
131 | };
132 | 504C538C1C19104A00A748A7 /* SCActivityIndicatorViewTests */ = {
133 | isa = PBXGroup;
134 | children = (
135 | 504C538D1C19104A00A748A7 /* SCActivityIndicatorViewTests.m */,
136 | 504C538F1C19104A00A748A7 /* Info.plist */,
137 | );
138 | path = SCActivityIndicatorViewTests;
139 | sourceTree = "";
140 | };
141 | 504C53971C19104A00A748A7 /* SCActivityIndicatorViewUITests */ = {
142 | isa = PBXGroup;
143 | children = (
144 | 504C53981C19104A00A748A7 /* SCActivityIndicatorViewUITests.m */,
145 | 504C539A1C19104A00A748A7 /* Info.plist */,
146 | );
147 | path = SCActivityIndicatorViewUITests;
148 | sourceTree = "";
149 | };
150 | 504C53A61C19106600A748A7 /* View */ = {
151 | isa = PBXGroup;
152 | children = (
153 | 504C53AC1C1910DA00A748A7 /* SCActivityIndicatorView.h */,
154 | 504C53AD1C1910DA00A748A7 /* SCActivityIndicatorView.m */,
155 | );
156 | name = View;
157 | sourceTree = "";
158 | };
159 | 504C53A71C19106B00A748A7 /* Util */ = {
160 | isa = PBXGroup;
161 | children = (
162 | 50ECE1001C1DBD8A00210D06 /* UIView+ViewFrameGeometry.h */,
163 | 50ECE1011C1DBD8A00210D06 /* UIView+ViewFrameGeometry.m */,
164 | );
165 | name = Util;
166 | sourceTree = "";
167 | };
168 | 504C53A81C19107000A748A7 /* Controller */ = {
169 | isa = PBXGroup;
170 | children = (
171 | 504C53791C19104A00A748A7 /* ViewController.h */,
172 | 504C537A1C19104A00A748A7 /* ViewController.m */,
173 | );
174 | name = Controller;
175 | sourceTree = "";
176 | };
177 | /* End PBXGroup section */
178 |
179 | /* Begin PBXNativeTarget section */
180 | 504C536F1C19104A00A748A7 /* SCActivityIndicatorView */ = {
181 | isa = PBXNativeTarget;
182 | buildConfigurationList = 504C539D1C19104A00A748A7 /* Build configuration list for PBXNativeTarget "SCActivityIndicatorView" */;
183 | buildPhases = (
184 | 504C536C1C19104A00A748A7 /* Sources */,
185 | 504C536D1C19104A00A748A7 /* Frameworks */,
186 | 504C536E1C19104A00A748A7 /* Resources */,
187 | );
188 | buildRules = (
189 | );
190 | dependencies = (
191 | );
192 | name = SCActivityIndicatorView;
193 | productName = SCActivityIndicatorView;
194 | productReference = 504C53701C19104A00A748A7 /* SCActivityIndicatorView.app */;
195 | productType = "com.apple.product-type.application";
196 | };
197 | 504C53881C19104A00A748A7 /* SCActivityIndicatorViewTests */ = {
198 | isa = PBXNativeTarget;
199 | buildConfigurationList = 504C53A01C19104A00A748A7 /* Build configuration list for PBXNativeTarget "SCActivityIndicatorViewTests" */;
200 | buildPhases = (
201 | 504C53851C19104A00A748A7 /* Sources */,
202 | 504C53861C19104A00A748A7 /* Frameworks */,
203 | 504C53871C19104A00A748A7 /* Resources */,
204 | );
205 | buildRules = (
206 | );
207 | dependencies = (
208 | 504C538B1C19104A00A748A7 /* PBXTargetDependency */,
209 | );
210 | name = SCActivityIndicatorViewTests;
211 | productName = SCActivityIndicatorViewTests;
212 | productReference = 504C53891C19104A00A748A7 /* SCActivityIndicatorViewTests.xctest */;
213 | productType = "com.apple.product-type.bundle.unit-test";
214 | };
215 | 504C53931C19104A00A748A7 /* SCActivityIndicatorViewUITests */ = {
216 | isa = PBXNativeTarget;
217 | buildConfigurationList = 504C53A31C19104A00A748A7 /* Build configuration list for PBXNativeTarget "SCActivityIndicatorViewUITests" */;
218 | buildPhases = (
219 | 504C53901C19104A00A748A7 /* Sources */,
220 | 504C53911C19104A00A748A7 /* Frameworks */,
221 | 504C53921C19104A00A748A7 /* Resources */,
222 | );
223 | buildRules = (
224 | );
225 | dependencies = (
226 | 504C53961C19104A00A748A7 /* PBXTargetDependency */,
227 | );
228 | name = SCActivityIndicatorViewUITests;
229 | productName = SCActivityIndicatorViewUITests;
230 | productReference = 504C53941C19104A00A748A7 /* SCActivityIndicatorViewUITests.xctest */;
231 | productType = "com.apple.product-type.bundle.ui-testing";
232 | };
233 | /* End PBXNativeTarget section */
234 |
235 | /* Begin PBXProject section */
236 | 504C53681C19104A00A748A7 /* Project object */ = {
237 | isa = PBXProject;
238 | attributes = {
239 | LastUpgradeCheck = 0710;
240 | ORGANIZATIONNAME = "叔 陈";
241 | TargetAttributes = {
242 | 504C536F1C19104A00A748A7 = {
243 | CreatedOnToolsVersion = 7.1.1;
244 | };
245 | 504C53881C19104A00A748A7 = {
246 | CreatedOnToolsVersion = 7.1.1;
247 | TestTargetID = 504C536F1C19104A00A748A7;
248 | };
249 | 504C53931C19104A00A748A7 = {
250 | CreatedOnToolsVersion = 7.1.1;
251 | TestTargetID = 504C536F1C19104A00A748A7;
252 | };
253 | };
254 | };
255 | buildConfigurationList = 504C536B1C19104A00A748A7 /* Build configuration list for PBXProject "SCActivityIndicatorView" */;
256 | compatibilityVersion = "Xcode 3.2";
257 | developmentRegion = English;
258 | hasScannedForEncodings = 0;
259 | knownRegions = (
260 | en,
261 | Base,
262 | );
263 | mainGroup = 504C53671C19104A00A748A7;
264 | productRefGroup = 504C53711C19104A00A748A7 /* Products */;
265 | projectDirPath = "";
266 | projectRoot = "";
267 | targets = (
268 | 504C536F1C19104A00A748A7 /* SCActivityIndicatorView */,
269 | 504C53881C19104A00A748A7 /* SCActivityIndicatorViewTests */,
270 | 504C53931C19104A00A748A7 /* SCActivityIndicatorViewUITests */,
271 | );
272 | };
273 | /* End PBXProject section */
274 |
275 | /* Begin PBXResourcesBuildPhase section */
276 | 504C536E1C19104A00A748A7 /* Resources */ = {
277 | isa = PBXResourcesBuildPhase;
278 | buildActionMask = 2147483647;
279 | files = (
280 | 504C53831C19104A00A748A7 /* LaunchScreen.storyboard in Resources */,
281 | 504C53801C19104A00A748A7 /* Assets.xcassets in Resources */,
282 | 504C537E1C19104A00A748A7 /* Main.storyboard in Resources */,
283 | );
284 | runOnlyForDeploymentPostprocessing = 0;
285 | };
286 | 504C53871C19104A00A748A7 /* Resources */ = {
287 | isa = PBXResourcesBuildPhase;
288 | buildActionMask = 2147483647;
289 | files = (
290 | );
291 | runOnlyForDeploymentPostprocessing = 0;
292 | };
293 | 504C53921C19104A00A748A7 /* Resources */ = {
294 | isa = PBXResourcesBuildPhase;
295 | buildActionMask = 2147483647;
296 | files = (
297 | );
298 | runOnlyForDeploymentPostprocessing = 0;
299 | };
300 | /* End PBXResourcesBuildPhase section */
301 |
302 | /* Begin PBXSourcesBuildPhase section */
303 | 504C536C1C19104A00A748A7 /* Sources */ = {
304 | isa = PBXSourcesBuildPhase;
305 | buildActionMask = 2147483647;
306 | files = (
307 | 504C53AE1C1910DA00A748A7 /* SCActivityIndicatorView.m in Sources */,
308 | 504C537B1C19104A00A748A7 /* ViewController.m in Sources */,
309 | 504C53781C19104A00A748A7 /* AppDelegate.m in Sources */,
310 | 504C53751C19104A00A748A7 /* main.m in Sources */,
311 | 50ECE1021C1DBD8A00210D06 /* UIView+ViewFrameGeometry.m in Sources */,
312 | );
313 | runOnlyForDeploymentPostprocessing = 0;
314 | };
315 | 504C53851C19104A00A748A7 /* Sources */ = {
316 | isa = PBXSourcesBuildPhase;
317 | buildActionMask = 2147483647;
318 | files = (
319 | 504C538E1C19104A00A748A7 /* SCActivityIndicatorViewTests.m in Sources */,
320 | );
321 | runOnlyForDeploymentPostprocessing = 0;
322 | };
323 | 504C53901C19104A00A748A7 /* Sources */ = {
324 | isa = PBXSourcesBuildPhase;
325 | buildActionMask = 2147483647;
326 | files = (
327 | 504C53991C19104A00A748A7 /* SCActivityIndicatorViewUITests.m in Sources */,
328 | );
329 | runOnlyForDeploymentPostprocessing = 0;
330 | };
331 | /* End PBXSourcesBuildPhase section */
332 |
333 | /* Begin PBXTargetDependency section */
334 | 504C538B1C19104A00A748A7 /* PBXTargetDependency */ = {
335 | isa = PBXTargetDependency;
336 | target = 504C536F1C19104A00A748A7 /* SCActivityIndicatorView */;
337 | targetProxy = 504C538A1C19104A00A748A7 /* PBXContainerItemProxy */;
338 | };
339 | 504C53961C19104A00A748A7 /* PBXTargetDependency */ = {
340 | isa = PBXTargetDependency;
341 | target = 504C536F1C19104A00A748A7 /* SCActivityIndicatorView */;
342 | targetProxy = 504C53951C19104A00A748A7 /* PBXContainerItemProxy */;
343 | };
344 | /* End PBXTargetDependency section */
345 |
346 | /* Begin PBXVariantGroup section */
347 | 504C537C1C19104A00A748A7 /* Main.storyboard */ = {
348 | isa = PBXVariantGroup;
349 | children = (
350 | 504C537D1C19104A00A748A7 /* Base */,
351 | );
352 | name = Main.storyboard;
353 | sourceTree = "";
354 | };
355 | 504C53811C19104A00A748A7 /* LaunchScreen.storyboard */ = {
356 | isa = PBXVariantGroup;
357 | children = (
358 | 504C53821C19104A00A748A7 /* Base */,
359 | );
360 | name = LaunchScreen.storyboard;
361 | sourceTree = "";
362 | };
363 | /* End PBXVariantGroup section */
364 |
365 | /* Begin XCBuildConfiguration section */
366 | 504C539B1C19104A00A748A7 /* Debug */ = {
367 | isa = XCBuildConfiguration;
368 | buildSettings = {
369 | ALWAYS_SEARCH_USER_PATHS = NO;
370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
371 | CLANG_CXX_LIBRARY = "libc++";
372 | CLANG_ENABLE_MODULES = YES;
373 | CLANG_ENABLE_OBJC_ARC = YES;
374 | CLANG_WARN_BOOL_CONVERSION = YES;
375 | CLANG_WARN_CONSTANT_CONVERSION = YES;
376 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
377 | CLANG_WARN_EMPTY_BODY = YES;
378 | CLANG_WARN_ENUM_CONVERSION = YES;
379 | CLANG_WARN_INT_CONVERSION = YES;
380 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
381 | CLANG_WARN_UNREACHABLE_CODE = YES;
382 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
383 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
384 | COPY_PHASE_STRIP = NO;
385 | DEBUG_INFORMATION_FORMAT = dwarf;
386 | ENABLE_STRICT_OBJC_MSGSEND = YES;
387 | ENABLE_TESTABILITY = YES;
388 | GCC_C_LANGUAGE_STANDARD = gnu99;
389 | GCC_DYNAMIC_NO_PIC = NO;
390 | GCC_NO_COMMON_BLOCKS = YES;
391 | GCC_OPTIMIZATION_LEVEL = 0;
392 | GCC_PREPROCESSOR_DEFINITIONS = (
393 | "DEBUG=1",
394 | "$(inherited)",
395 | );
396 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
397 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
398 | GCC_WARN_UNDECLARED_SELECTOR = YES;
399 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
400 | GCC_WARN_UNUSED_FUNCTION = YES;
401 | GCC_WARN_UNUSED_VARIABLE = YES;
402 | IPHONEOS_DEPLOYMENT_TARGET = 9.1;
403 | MTL_ENABLE_DEBUG_INFO = YES;
404 | ONLY_ACTIVE_ARCH = YES;
405 | SDKROOT = iphoneos;
406 | TARGETED_DEVICE_FAMILY = "1,2";
407 | };
408 | name = Debug;
409 | };
410 | 504C539C1C19104A00A748A7 /* Release */ = {
411 | isa = XCBuildConfiguration;
412 | buildSettings = {
413 | ALWAYS_SEARCH_USER_PATHS = NO;
414 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
415 | CLANG_CXX_LIBRARY = "libc++";
416 | CLANG_ENABLE_MODULES = YES;
417 | CLANG_ENABLE_OBJC_ARC = YES;
418 | CLANG_WARN_BOOL_CONVERSION = YES;
419 | CLANG_WARN_CONSTANT_CONVERSION = YES;
420 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
421 | CLANG_WARN_EMPTY_BODY = YES;
422 | CLANG_WARN_ENUM_CONVERSION = YES;
423 | CLANG_WARN_INT_CONVERSION = YES;
424 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
425 | CLANG_WARN_UNREACHABLE_CODE = YES;
426 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
427 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
428 | COPY_PHASE_STRIP = NO;
429 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
430 | ENABLE_NS_ASSERTIONS = NO;
431 | ENABLE_STRICT_OBJC_MSGSEND = YES;
432 | GCC_C_LANGUAGE_STANDARD = gnu99;
433 | GCC_NO_COMMON_BLOCKS = YES;
434 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
435 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
436 | GCC_WARN_UNDECLARED_SELECTOR = YES;
437 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
438 | GCC_WARN_UNUSED_FUNCTION = YES;
439 | GCC_WARN_UNUSED_VARIABLE = YES;
440 | IPHONEOS_DEPLOYMENT_TARGET = 9.1;
441 | MTL_ENABLE_DEBUG_INFO = NO;
442 | SDKROOT = iphoneos;
443 | TARGETED_DEVICE_FAMILY = "1,2";
444 | VALIDATE_PRODUCT = YES;
445 | };
446 | name = Release;
447 | };
448 | 504C539E1C19104A00A748A7 /* Debug */ = {
449 | isa = XCBuildConfiguration;
450 | buildSettings = {
451 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
452 | INFOPLIST_FILE = SCActivityIndicatorView/Info.plist;
453 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
454 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
455 | PRODUCT_BUNDLE_IDENTIFIER = sergio.chan.SCActivityIndicatorView;
456 | PRODUCT_NAME = "$(TARGET_NAME)";
457 | TARGETED_DEVICE_FAMILY = 1;
458 | };
459 | name = Debug;
460 | };
461 | 504C539F1C19104A00A748A7 /* Release */ = {
462 | isa = XCBuildConfiguration;
463 | buildSettings = {
464 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
465 | INFOPLIST_FILE = SCActivityIndicatorView/Info.plist;
466 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
467 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
468 | PRODUCT_BUNDLE_IDENTIFIER = sergio.chan.SCActivityIndicatorView;
469 | PRODUCT_NAME = "$(TARGET_NAME)";
470 | TARGETED_DEVICE_FAMILY = 1;
471 | };
472 | name = Release;
473 | };
474 | 504C53A11C19104A00A748A7 /* Debug */ = {
475 | isa = XCBuildConfiguration;
476 | buildSettings = {
477 | BUNDLE_LOADER = "$(TEST_HOST)";
478 | INFOPLIST_FILE = SCActivityIndicatorViewTests/Info.plist;
479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
480 | PRODUCT_BUNDLE_IDENTIFIER = sergio.chan.SCActivityIndicatorViewTests;
481 | PRODUCT_NAME = "$(TARGET_NAME)";
482 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SCActivityIndicatorView.app/SCActivityIndicatorView";
483 | };
484 | name = Debug;
485 | };
486 | 504C53A21C19104A00A748A7 /* Release */ = {
487 | isa = XCBuildConfiguration;
488 | buildSettings = {
489 | BUNDLE_LOADER = "$(TEST_HOST)";
490 | INFOPLIST_FILE = SCActivityIndicatorViewTests/Info.plist;
491 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
492 | PRODUCT_BUNDLE_IDENTIFIER = sergio.chan.SCActivityIndicatorViewTests;
493 | PRODUCT_NAME = "$(TARGET_NAME)";
494 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SCActivityIndicatorView.app/SCActivityIndicatorView";
495 | };
496 | name = Release;
497 | };
498 | 504C53A41C19104A00A748A7 /* Debug */ = {
499 | isa = XCBuildConfiguration;
500 | buildSettings = {
501 | INFOPLIST_FILE = SCActivityIndicatorViewUITests/Info.plist;
502 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
503 | PRODUCT_BUNDLE_IDENTIFIER = sergio.chan.SCActivityIndicatorViewUITests;
504 | PRODUCT_NAME = "$(TARGET_NAME)";
505 | TEST_TARGET_NAME = SCActivityIndicatorView;
506 | USES_XCTRUNNER = YES;
507 | };
508 | name = Debug;
509 | };
510 | 504C53A51C19104A00A748A7 /* Release */ = {
511 | isa = XCBuildConfiguration;
512 | buildSettings = {
513 | INFOPLIST_FILE = SCActivityIndicatorViewUITests/Info.plist;
514 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
515 | PRODUCT_BUNDLE_IDENTIFIER = sergio.chan.SCActivityIndicatorViewUITests;
516 | PRODUCT_NAME = "$(TARGET_NAME)";
517 | TEST_TARGET_NAME = SCActivityIndicatorView;
518 | USES_XCTRUNNER = YES;
519 | };
520 | name = Release;
521 | };
522 | /* End XCBuildConfiguration section */
523 |
524 | /* Begin XCConfigurationList section */
525 | 504C536B1C19104A00A748A7 /* Build configuration list for PBXProject "SCActivityIndicatorView" */ = {
526 | isa = XCConfigurationList;
527 | buildConfigurations = (
528 | 504C539B1C19104A00A748A7 /* Debug */,
529 | 504C539C1C19104A00A748A7 /* Release */,
530 | );
531 | defaultConfigurationIsVisible = 0;
532 | defaultConfigurationName = Release;
533 | };
534 | 504C539D1C19104A00A748A7 /* Build configuration list for PBXNativeTarget "SCActivityIndicatorView" */ = {
535 | isa = XCConfigurationList;
536 | buildConfigurations = (
537 | 504C539E1C19104A00A748A7 /* Debug */,
538 | 504C539F1C19104A00A748A7 /* Release */,
539 | );
540 | defaultConfigurationIsVisible = 0;
541 | defaultConfigurationName = Release;
542 | };
543 | 504C53A01C19104A00A748A7 /* Build configuration list for PBXNativeTarget "SCActivityIndicatorViewTests" */ = {
544 | isa = XCConfigurationList;
545 | buildConfigurations = (
546 | 504C53A11C19104A00A748A7 /* Debug */,
547 | 504C53A21C19104A00A748A7 /* Release */,
548 | );
549 | defaultConfigurationIsVisible = 0;
550 | defaultConfigurationName = Release;
551 | };
552 | 504C53A31C19104A00A748A7 /* Build configuration list for PBXNativeTarget "SCActivityIndicatorViewUITests" */ = {
553 | isa = XCConfigurationList;
554 | buildConfigurations = (
555 | 504C53A41C19104A00A748A7 /* Debug */,
556 | 504C53A51C19104A00A748A7 /* Release */,
557 | );
558 | defaultConfigurationIsVisible = 0;
559 | defaultConfigurationName = Release;
560 | };
561 | /* End XCConfigurationList section */
562 | };
563 | rootObject = 504C53681C19104A00A748A7 /* Project object */;
564 | }
565 |
--------------------------------------------------------------------------------