├── demo.gif
├── ERProgressHud
├── ERProgressHud
│ ├── Assets.xcassets
│ │ ├── Contents.json
│ │ ├── bg.imageset
│ │ │ ├── bg.jpg
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── ViewController.h
│ ├── AppDelegate.h
│ ├── main.m
│ ├── ERProgressHud
│ │ ├── ERProgressHud.h
│ │ └── ERProgressHud.m
│ ├── Info.plist
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── AppDelegate.m
│ └── ViewController.m
├── ERProgressHud.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ │ └── emraz.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ ├── xcuserdata
│ │ └── emraz.xcuserdatad
│ │ │ └── xcschemes
│ │ │ └── xcschememanagement.plist
│ └── project.pbxproj
├── ERProgressHudTests
│ ├── Info.plist
│ └── ERProgressHudTests.m
└── ERProgressHudUITests
│ ├── Info.plist
│ └── ERProgressHudUITests.m
├── LICENSE
└── README.md
/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emraz/ERProgressHud-ObjectiveC/HEAD/demo.gif
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/Assets.xcassets/bg.imageset/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emraz/ERProgressHud-ObjectiveC/HEAD/ERProgressHud/ERProgressHud/Assets.xcassets/bg.imageset/bg.jpg
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud.xcodeproj/project.xcworkspace/xcuserdata/emraz.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emraz/ERProgressHud-ObjectiveC/HEAD/ERProgressHud/ERProgressHud.xcodeproj/project.xcworkspace/xcuserdata/emraz.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // ERProgressHud
4 | //
5 | // Created by Mahmudul Hasan R@zib on 2/23/18.
6 | // Copyright © 2018 Matrix Solution Ltd. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // ERProgressHud
4 | //
5 | // Created by Mahmudul Hasan R@zib on 2/23/18.
6 | // Copyright © 2018 Matrix Solution Ltd. 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 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/Assets.xcassets/bg.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "bg.jpg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // ERProgressHud
4 | //
5 | // Created by Mahmudul Hasan R@zib on 2/23/18.
6 | // Copyright © 2018 Matrix Solution Ltd. 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 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud.xcodeproj/xcuserdata/emraz.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ERProgressHud.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHudTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHudUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/ERProgressHud/ERProgressHud.h:
--------------------------------------------------------------------------------
1 | //
2 | // ERProgressHud.h
3 | // PhotoBlend
4 | //
5 | // Created by Mahmudul Hasan on 5/29/17.
6 | // Copyright © 2017 Mahmudul Hasan. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 |
13 | @interface ERProgressHud : NSObject {
14 | UIView *container;
15 | UIView *subContainer;
16 | UILabel *textLabel;
17 | UIActivityIndicatorView * activityIndicatorView;
18 | UIVisualEffectView *blurEffectView;
19 | }
20 |
21 | + (ERProgressHud *)sharedInstance;
22 | - (void)show;
23 | - (void)showWithBlurView;
24 | - (void)hide;
25 | - (void)showWithTitle:(NSString *)title;
26 | - (void)showDarkBackgroundViewWithTitle:(NSString *)title;
27 | - (void)showBlurViewWithTitle:(NSString *)title;
28 | - (void)updateProgressTitle:(NSString *)title;
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHudTests/ERProgressHudTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // ERProgressHudTests.m
3 | // ERProgressHudTests
4 | //
5 | // Created by Mahmudul Hasan R@zib on 2/23/18.
6 | // Copyright © 2018 Matrix Solution Ltd. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ERProgressHudTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation ERProgressHudTests
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 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Mohammad Mahmudul Hasan
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 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHudUITests/ERProgressHudUITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // ERProgressHudUITests.m
3 | // ERProgressHudUITests
4 | //
5 | // Created by Mahmudul Hasan R@zib on 2/23/18.
6 | // Copyright © 2018 Matrix Solution Ltd. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ERProgressHudUITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation ERProgressHudUITests
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 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ERProgressHud-ObjectiveC
2 | *Made with love and passion*
3 |
4 | ## Introduction
5 | * A simple Progresshud written in ObjectiveC.
6 | * Five different kinds of ProgressHud is implemented to use.
7 | * Easy to customize.
8 | * ProgressHud With various options.
9 | * Easy to add title.
10 | * Blur Background View.
11 | * Dark Background View.
12 |
13 | ## Demo
14 | 
15 | ## Requirements
16 | * iOS 9.0+
17 | * Xcode 8.0 +
18 | * Objective C
19 |
20 | ## Installation
21 | 1. Download the least source files.
22 | 2. Drag ERPogressHud/ERPogressHud folder to Xcode project. Make sure to select Copy items if needed.
23 | 3. In the source files where you need to use the library, import the header file.
24 |
25 | #import "ERProgressHud.h"
26 |
27 | ## How To Use
28 |
29 | // Show Simple ProgressHud without Title
30 | ```
31 | [[ERProgressHud sharedInstance] show];
32 | ```
33 |
34 | // Show Blur Background View ProgressHud without Title
35 | ```
36 | [[ERProgressHud sharedInstance] showWithBlurView];
37 | ```
38 |
39 | // Show Transparent Background View ProgressHud with Title
40 | ```
41 | [[ERProgressHud sharedInstance] showWithTitle:@"Loading..."];
42 | ```
43 |
44 | // Show Blur Background View ProgressHud with Title
45 | ```
46 | [[ERProgressHud sharedInstance] showBlurViewWithTitle:@"Loading..."];
47 | ```
48 |
49 | // Show Dark Background View ProgressHud with Title
50 | ```
51 | [[ERProgressHud sharedInstance] showDarkBackgroundViewWithTitle:@"Loading..."];
52 | ```
53 |
54 | // Dismiss ProgressHud
55 | ```
56 | [[ERProgressHud sharedInstance] hide];
57 | ```
58 |
59 | ## License
60 | ERProgressHud is released under the MIT license. See LICENSE for details.
61 |
62 |
63 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // ERProgressHud
4 | //
5 | // Created by Mahmudul Hasan R@zib on 2/23/18.
6 | // Copyright © 2018 Matrix Solution Ltd. 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 |
24 | - (void)applicationWillResignActive:(UIApplication *)application {
25 | // 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.
26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
27 | }
28 |
29 |
30 | - (void)applicationDidEnterBackground:(UIApplication *)application {
31 | // 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.
32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
33 | }
34 |
35 |
36 | - (void)applicationWillEnterForeground:(UIApplication *)application {
37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
38 | }
39 |
40 |
41 | - (void)applicationDidBecomeActive:(UIApplication *)application {
42 | // 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.
43 | }
44 |
45 |
46 | - (void)applicationWillTerminate:(UIApplication *)application {
47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
48 | }
49 |
50 |
51 | @end
52 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // ERProgressHud
4 | //
5 | // Created by Mahmudul Hasan R@zib on 2/23/18.
6 | // Copyright © 2018 Matrix Solution Ltd. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "ERProgressHud.h"
11 |
12 | @interface ViewController ()
13 |
14 | @end
15 |
16 | @implementation ViewController
17 |
18 | - (void)viewDidLoad {
19 | [super viewDidLoad];
20 | // Do any additional setup after loading the view, typically from a nib.
21 | }
22 |
23 |
24 | - (void)didReceiveMemoryWarning {
25 | [super didReceiveMemoryWarning];
26 | // Dispose of any resources that can be recreated.
27 | }
28 |
29 | - (IBAction)showProgressHudWithDarkBGNoTitle:(id)sender {
30 | [[ERProgressHud sharedInstance] show];
31 |
32 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
33 | [[ERProgressHud sharedInstance] hide];
34 | });
35 | }
36 |
37 | - (IBAction)showProgressHudWithBlurBGNoTitle:(id)sender {
38 | [[ERProgressHud sharedInstance] showWithBlurView];
39 |
40 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
41 | [[ERProgressHud sharedInstance] hide];
42 | });
43 | }
44 |
45 | - (IBAction)showProgressHudWithTitleNoBG:(id)sender {
46 |
47 | [[ERProgressHud sharedInstance] showWithTitle:@"Loading..."];
48 |
49 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
50 | [[ERProgressHud sharedInstance] hide];
51 | });
52 | }
53 |
54 | - (IBAction)showProgressHudWithTitleandBlurBG:(id)sender {
55 |
56 | [[ERProgressHud sharedInstance] showBlurViewWithTitle:@"Loading..."];
57 |
58 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
59 | [[ERProgressHud sharedInstance] hide];
60 | });
61 | }
62 | - (IBAction)showProgressHudWithTitleandDarkBG:(id)sender {
63 |
64 | [[ERProgressHud sharedInstance] showDarkBackgroundViewWithTitle:@"Loading..."];
65 |
66 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
67 | [[ERProgressHud sharedInstance] hide];
68 | });
69 | }
70 |
71 | @end
72 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/ERProgressHud/ERProgressHud.m:
--------------------------------------------------------------------------------
1 | //
2 | // ERProgressHud.m
3 | // PhotoBlend
4 | //
5 | // Created by Mahmudul Hasan on 5/29/17.
6 | // Copyright © 2017 Mahmudul Hasan. All rights reserved.
7 | //
8 |
9 | #import "ERProgressHud.h"
10 |
11 | #define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
12 | #define SIZE_CONSTANT 375.0
13 | #define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
14 |
15 | @implementation ERProgressHud
16 |
17 | + (ERProgressHud *)sharedInstance {
18 | static ERProgressHud *sharedMyInstance = nil;
19 | static dispatch_once_t onceToken;
20 | dispatch_once(&onceToken, ^{
21 | sharedMyInstance = [[self alloc] init];
22 | });
23 | return sharedMyInstance;
24 | }
25 |
26 | - (id)init {
27 | if (self = [super init]) {
28 |
29 | //Main Container
30 | container = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
31 | container.backgroundColor = [UIColor clearColor];
32 |
33 | //Sub Container
34 | subContainer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH/3.0, SCREEN_WIDTH/4.0)];
35 | subContainer.layer.cornerRadius = 5.0;
36 | subContainer.layer.masksToBounds = YES;
37 | subContainer.backgroundColor = [UIColor clearColor];
38 |
39 | //Activity Indicator
40 | activityIndicatorView = [[UIActivityIndicatorView alloc] init];
41 | activityIndicatorView.hidesWhenStopped = YES;
42 | //[subContainer addSubview:activityIndicatorView];
43 |
44 | //Text Label
45 | textLabel = [[UILabel alloc] init];
46 | textLabel.textAlignment = NSTextAlignmentCenter;
47 | textLabel.numberOfLines = 0;
48 | textLabel.font = [UIFont systemFontOfSize:14.0 weight:UIFontWeightMedium];
49 | textLabel.textColor = [UIColor darkGrayColor];
50 |
51 | //Blur Effect
52 | UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
53 | blurEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
54 | //always fill the view
55 | blurEffectView.frame = container.bounds;
56 | blurEffectView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
57 | }
58 | return self;
59 | }
60 |
61 | - (void)show {
62 |
63 | container.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.85f];
64 | activityIndicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
65 | activityIndicatorView.center = CGPointMake(SCREEN_WIDTH/2, SCREEN_HEIGHT/2);
66 | activityIndicatorView.color = [UIColor whiteColor];
67 |
68 | [activityIndicatorView startAnimating];
69 | [container addSubview:activityIndicatorView];
70 | [[UIApplication sharedApplication].keyWindow addSubview:container];
71 | container.alpha = 0.0;
72 | [UIView animateWithDuration:0.5 animations:^{
73 | container.alpha = 1.0;
74 | }];
75 | }
76 |
77 | - (void)showWithBlurView {
78 |
79 | //only apply the blur if the user hasn't disabled transparency effects
80 | if (!UIAccessibilityIsReduceTransparencyEnabled()) {
81 | container.backgroundColor = [UIColor clearColor];
82 | [container addSubview:blurEffectView];
83 | } else {
84 | container.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.85f];
85 | }
86 |
87 | activityIndicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
88 | activityIndicatorView.center = CGPointMake(SCREEN_WIDTH/2, SCREEN_HEIGHT/2);
89 |
90 | [activityIndicatorView startAnimating];
91 | [container addSubview:activityIndicatorView];
92 | [[UIApplication sharedApplication].keyWindow addSubview:container];
93 | container.alpha = 0.0;
94 | [UIView animateWithDuration:0.5 animations:^{
95 | container.alpha = 1.0;
96 | }];
97 | }
98 |
99 | - (void)hide {
100 |
101 | [UIView animateWithDuration:0.5 animations:^{
102 | container.alpha = 0.0;
103 | } completion:^(BOOL finished) {
104 | [activityIndicatorView stopAnimating];
105 |
106 | [activityIndicatorView removeFromSuperview];
107 | [textLabel removeFromSuperview];
108 | [subContainer removeFromSuperview];
109 | [blurEffectView removeFromSuperview];
110 | [container removeFromSuperview];
111 | }];
112 | }
113 |
114 | - (void)showWithTitle:(NSString *)title {
115 |
116 | container.backgroundColor = [UIColor clearColor];
117 |
118 | subContainer.backgroundColor = [UIColor groupTableViewBackgroundColor];
119 | [subContainer setCenter:CGPointMake(SCREEN_WIDTH/2, SCREEN_HEIGHT/2)];
120 | [container addSubview:subContainer];
121 |
122 | activityIndicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;
123 | [activityIndicatorView setFrame:CGRectMake(0, 10, CGRectGetWidth(subContainer.bounds), CGRectGetHeight(subContainer.bounds)/3.0)];
124 | activityIndicatorView.center = CGPointMake(activityIndicatorView.center.x, activityIndicatorView.center.y);
125 | [subContainer addSubview:activityIndicatorView];
126 |
127 | CGFloat height = CGRectGetHeight(subContainer.bounds) - CGRectGetHeight(activityIndicatorView.bounds) - 10.0;
128 | textLabel.frame = CGRectMake(5, 10 + CGRectGetHeight(activityIndicatorView.bounds), CGRectGetWidth(subContainer.bounds) - 10.0, height - 5.0);
129 | textLabel.text = title;
130 | [subContainer addSubview:textLabel];
131 |
132 | [activityIndicatorView startAnimating];
133 | [[UIApplication sharedApplication].keyWindow addSubview:container];
134 | container.alpha = 0.0;
135 | [UIView animateWithDuration:0.5 animations:^{
136 | container.alpha = 1.0;
137 | }];
138 | }
139 |
140 |
141 | - (void)showDarkBackgroundViewWithTitle:(NSString *)title {
142 |
143 | container.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.85f];
144 |
145 | subContainer.backgroundColor = [UIColor groupTableViewBackgroundColor];
146 | [subContainer setCenter:CGPointMake(SCREEN_WIDTH/2, SCREEN_HEIGHT/2)];
147 | [container addSubview:subContainer];
148 |
149 | activityIndicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;
150 | [activityIndicatorView setFrame:CGRectMake(0, 10, CGRectGetWidth(subContainer.bounds), CGRectGetHeight(subContainer.bounds)/3.0)];
151 | activityIndicatorView.center = CGPointMake(activityIndicatorView.center.x, activityIndicatorView.center.y);
152 | [subContainer addSubview:activityIndicatorView];
153 |
154 | CGFloat height = CGRectGetHeight(subContainer.bounds) - CGRectGetHeight(activityIndicatorView.bounds) - 10.0;
155 | textLabel.frame = CGRectMake(5, 10 + CGRectGetHeight(activityIndicatorView.bounds), CGRectGetWidth(subContainer.bounds) - 10.0, height - 5.0);
156 | textLabel.text = title;
157 | [subContainer addSubview:textLabel];
158 |
159 | [activityIndicatorView startAnimating];
160 | [[UIApplication sharedApplication].keyWindow addSubview:container];
161 | container.alpha = 0.0;
162 | [UIView animateWithDuration:0.5 animations:^{
163 | container.alpha = 1.0;
164 | }];
165 | }
166 |
167 | - (void)showBlurViewWithTitle:(NSString *)title {
168 |
169 | //only apply the blur if the user hasn't disabled transparency effects
170 | if (!UIAccessibilityIsReduceTransparencyEnabled()) {
171 | container.backgroundColor = [UIColor clearColor];
172 | [container addSubview:blurEffectView];
173 | } else {
174 | container.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.85f];
175 | }
176 |
177 | subContainer.backgroundColor = [UIColor groupTableViewBackgroundColor];
178 | [subContainer setCenter:CGPointMake(SCREEN_WIDTH/2, SCREEN_HEIGHT/2)];
179 | [container addSubview:subContainer];
180 |
181 | activityIndicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;
182 | [activityIndicatorView setFrame:CGRectMake(0, 10, CGRectGetWidth(subContainer.bounds), CGRectGetHeight(subContainer.bounds)/3.0)];
183 | activityIndicatorView.center = CGPointMake(activityIndicatorView.center.x, activityIndicatorView.center.y);
184 | [subContainer addSubview:activityIndicatorView];
185 |
186 | CGFloat height = CGRectGetHeight(subContainer.bounds) - CGRectGetHeight(activityIndicatorView.bounds) - 10.0;
187 | textLabel.frame = CGRectMake(5, 10 + CGRectGetHeight(activityIndicatorView.bounds), CGRectGetWidth(subContainer.bounds) - 10.0, height - 5.0);
188 | textLabel.text = title;
189 | [subContainer addSubview:textLabel];
190 |
191 | [activityIndicatorView startAnimating];
192 | [[UIApplication sharedApplication].keyWindow addSubview:container];
193 | container.alpha = 0.0;
194 | [UIView animateWithDuration:0.5 animations:^{
195 | container.alpha = 1.0;
196 | }];
197 | }
198 |
199 | - (void)updateProgressTitle:(NSString *)title {
200 | textLabel.text = title;
201 | }
202 |
203 | @end
204 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud/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 |
34 |
44 |
54 |
64 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
--------------------------------------------------------------------------------
/ERProgressHud/ERProgressHud.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 48;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 50316D11203F443100457917 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 50316D10203F443100457917 /* AppDelegate.m */; };
11 | 50316D14203F443100457917 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 50316D13203F443100457917 /* ViewController.m */; };
12 | 50316D17203F443100457917 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50316D15203F443100457917 /* Main.storyboard */; };
13 | 50316D19203F443100457917 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50316D18203F443100457917 /* Assets.xcassets */; };
14 | 50316D1C203F443100457917 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50316D1A203F443100457917 /* LaunchScreen.storyboard */; };
15 | 50316D1F203F443100457917 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 50316D1E203F443100457917 /* main.m */; };
16 | 50316D29203F443100457917 /* ERProgressHudTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 50316D28203F443100457917 /* ERProgressHudTests.m */; };
17 | 50316D34203F443100457917 /* ERProgressHudUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 50316D33203F443100457917 /* ERProgressHudUITests.m */; };
18 | 50316D44203F449200457917 /* ERProgressHud.m in Sources */ = {isa = PBXBuildFile; fileRef = 50316D42203F449200457917 /* ERProgressHud.m */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXContainerItemProxy section */
22 | 50316D25203F443100457917 /* PBXContainerItemProxy */ = {
23 | isa = PBXContainerItemProxy;
24 | containerPortal = 50316D04203F443100457917 /* Project object */;
25 | proxyType = 1;
26 | remoteGlobalIDString = 50316D0B203F443100457917;
27 | remoteInfo = ERProgressHud;
28 | };
29 | 50316D30203F443100457917 /* PBXContainerItemProxy */ = {
30 | isa = PBXContainerItemProxy;
31 | containerPortal = 50316D04203F443100457917 /* Project object */;
32 | proxyType = 1;
33 | remoteGlobalIDString = 50316D0B203F443100457917;
34 | remoteInfo = ERProgressHud;
35 | };
36 | /* End PBXContainerItemProxy section */
37 |
38 | /* Begin PBXFileReference section */
39 | 50316D0C203F443100457917 /* ERProgressHud.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ERProgressHud.app; sourceTree = BUILT_PRODUCTS_DIR; };
40 | 50316D0F203F443100457917 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
41 | 50316D10203F443100457917 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
42 | 50316D12203F443100457917 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
43 | 50316D13203F443100457917 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
44 | 50316D16203F443100457917 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 50316D18203F443100457917 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 50316D1B203F443100457917 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 50316D1D203F443100457917 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | 50316D1E203F443100457917 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
49 | 50316D24203F443100457917 /* ERProgressHudTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ERProgressHudTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 50316D28203F443100457917 /* ERProgressHudTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ERProgressHudTests.m; sourceTree = ""; };
51 | 50316D2A203F443100457917 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
52 | 50316D2F203F443100457917 /* ERProgressHudUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ERProgressHudUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
53 | 50316D33203F443100457917 /* ERProgressHudUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ERProgressHudUITests.m; sourceTree = ""; };
54 | 50316D35203F443100457917 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
55 | 50316D42203F449200457917 /* ERProgressHud.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ERProgressHud.m; sourceTree = ""; };
56 | 50316D43203F449200457917 /* ERProgressHud.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ERProgressHud.h; sourceTree = ""; };
57 | /* End PBXFileReference section */
58 |
59 | /* Begin PBXFrameworksBuildPhase section */
60 | 50316D09203F443100457917 /* Frameworks */ = {
61 | isa = PBXFrameworksBuildPhase;
62 | buildActionMask = 2147483647;
63 | files = (
64 | );
65 | runOnlyForDeploymentPostprocessing = 0;
66 | };
67 | 50316D21203F443100457917 /* Frameworks */ = {
68 | isa = PBXFrameworksBuildPhase;
69 | buildActionMask = 2147483647;
70 | files = (
71 | );
72 | runOnlyForDeploymentPostprocessing = 0;
73 | };
74 | 50316D2C203F443100457917 /* Frameworks */ = {
75 | isa = PBXFrameworksBuildPhase;
76 | buildActionMask = 2147483647;
77 | files = (
78 | );
79 | runOnlyForDeploymentPostprocessing = 0;
80 | };
81 | /* End PBXFrameworksBuildPhase section */
82 |
83 | /* Begin PBXGroup section */
84 | 50316D03203F443100457917 = {
85 | isa = PBXGroup;
86 | children = (
87 | 50316D0E203F443100457917 /* ERProgressHud */,
88 | 50316D27203F443100457917 /* ERProgressHudTests */,
89 | 50316D32203F443100457917 /* ERProgressHudUITests */,
90 | 50316D0D203F443100457917 /* Products */,
91 | );
92 | sourceTree = "";
93 | };
94 | 50316D0D203F443100457917 /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 50316D0C203F443100457917 /* ERProgressHud.app */,
98 | 50316D24203F443100457917 /* ERProgressHudTests.xctest */,
99 | 50316D2F203F443100457917 /* ERProgressHudUITests.xctest */,
100 | );
101 | name = Products;
102 | sourceTree = "";
103 | };
104 | 50316D0E203F443100457917 /* ERProgressHud */ = {
105 | isa = PBXGroup;
106 | children = (
107 | 50316D41203F449200457917 /* ERProgressHud */,
108 | 50316D0F203F443100457917 /* AppDelegate.h */,
109 | 50316D10203F443100457917 /* AppDelegate.m */,
110 | 50316D12203F443100457917 /* ViewController.h */,
111 | 50316D13203F443100457917 /* ViewController.m */,
112 | 50316D15203F443100457917 /* Main.storyboard */,
113 | 50316D18203F443100457917 /* Assets.xcassets */,
114 | 50316D1A203F443100457917 /* LaunchScreen.storyboard */,
115 | 50316D1D203F443100457917 /* Info.plist */,
116 | 50316D1E203F443100457917 /* main.m */,
117 | );
118 | path = ERProgressHud;
119 | sourceTree = "";
120 | };
121 | 50316D27203F443100457917 /* ERProgressHudTests */ = {
122 | isa = PBXGroup;
123 | children = (
124 | 50316D28203F443100457917 /* ERProgressHudTests.m */,
125 | 50316D2A203F443100457917 /* Info.plist */,
126 | );
127 | path = ERProgressHudTests;
128 | sourceTree = "";
129 | };
130 | 50316D32203F443100457917 /* ERProgressHudUITests */ = {
131 | isa = PBXGroup;
132 | children = (
133 | 50316D33203F443100457917 /* ERProgressHudUITests.m */,
134 | 50316D35203F443100457917 /* Info.plist */,
135 | );
136 | path = ERProgressHudUITests;
137 | sourceTree = "";
138 | };
139 | 50316D41203F449200457917 /* ERProgressHud */ = {
140 | isa = PBXGroup;
141 | children = (
142 | 50316D43203F449200457917 /* ERProgressHud.h */,
143 | 50316D42203F449200457917 /* ERProgressHud.m */,
144 | );
145 | path = ERProgressHud;
146 | sourceTree = "";
147 | };
148 | /* End PBXGroup section */
149 |
150 | /* Begin PBXNativeTarget section */
151 | 50316D0B203F443100457917 /* ERProgressHud */ = {
152 | isa = PBXNativeTarget;
153 | buildConfigurationList = 50316D38203F443100457917 /* Build configuration list for PBXNativeTarget "ERProgressHud" */;
154 | buildPhases = (
155 | 50316D08203F443100457917 /* Sources */,
156 | 50316D09203F443100457917 /* Frameworks */,
157 | 50316D0A203F443100457917 /* Resources */,
158 | );
159 | buildRules = (
160 | );
161 | dependencies = (
162 | );
163 | name = ERProgressHud;
164 | productName = ERProgressHud;
165 | productReference = 50316D0C203F443100457917 /* ERProgressHud.app */;
166 | productType = "com.apple.product-type.application";
167 | };
168 | 50316D23203F443100457917 /* ERProgressHudTests */ = {
169 | isa = PBXNativeTarget;
170 | buildConfigurationList = 50316D3B203F443100457917 /* Build configuration list for PBXNativeTarget "ERProgressHudTests" */;
171 | buildPhases = (
172 | 50316D20203F443100457917 /* Sources */,
173 | 50316D21203F443100457917 /* Frameworks */,
174 | 50316D22203F443100457917 /* Resources */,
175 | );
176 | buildRules = (
177 | );
178 | dependencies = (
179 | 50316D26203F443100457917 /* PBXTargetDependency */,
180 | );
181 | name = ERProgressHudTests;
182 | productName = ERProgressHudTests;
183 | productReference = 50316D24203F443100457917 /* ERProgressHudTests.xctest */;
184 | productType = "com.apple.product-type.bundle.unit-test";
185 | };
186 | 50316D2E203F443100457917 /* ERProgressHudUITests */ = {
187 | isa = PBXNativeTarget;
188 | buildConfigurationList = 50316D3E203F443100457917 /* Build configuration list for PBXNativeTarget "ERProgressHudUITests" */;
189 | buildPhases = (
190 | 50316D2B203F443100457917 /* Sources */,
191 | 50316D2C203F443100457917 /* Frameworks */,
192 | 50316D2D203F443100457917 /* Resources */,
193 | );
194 | buildRules = (
195 | );
196 | dependencies = (
197 | 50316D31203F443100457917 /* PBXTargetDependency */,
198 | );
199 | name = ERProgressHudUITests;
200 | productName = ERProgressHudUITests;
201 | productReference = 50316D2F203F443100457917 /* ERProgressHudUITests.xctest */;
202 | productType = "com.apple.product-type.bundle.ui-testing";
203 | };
204 | /* End PBXNativeTarget section */
205 |
206 | /* Begin PBXProject section */
207 | 50316D04203F443100457917 /* Project object */ = {
208 | isa = PBXProject;
209 | attributes = {
210 | LastUpgradeCheck = 0920;
211 | ORGANIZATIONNAME = "Matrix Solution Ltd";
212 | TargetAttributes = {
213 | 50316D0B203F443100457917 = {
214 | CreatedOnToolsVersion = 9.2;
215 | ProvisioningStyle = Automatic;
216 | };
217 | 50316D23203F443100457917 = {
218 | CreatedOnToolsVersion = 9.2;
219 | ProvisioningStyle = Automatic;
220 | TestTargetID = 50316D0B203F443100457917;
221 | };
222 | 50316D2E203F443100457917 = {
223 | CreatedOnToolsVersion = 9.2;
224 | ProvisioningStyle = Automatic;
225 | TestTargetID = 50316D0B203F443100457917;
226 | };
227 | };
228 | };
229 | buildConfigurationList = 50316D07203F443100457917 /* Build configuration list for PBXProject "ERProgressHud" */;
230 | compatibilityVersion = "Xcode 8.0";
231 | developmentRegion = en;
232 | hasScannedForEncodings = 0;
233 | knownRegions = (
234 | en,
235 | Base,
236 | );
237 | mainGroup = 50316D03203F443100457917;
238 | productRefGroup = 50316D0D203F443100457917 /* Products */;
239 | projectDirPath = "";
240 | projectRoot = "";
241 | targets = (
242 | 50316D0B203F443100457917 /* ERProgressHud */,
243 | 50316D23203F443100457917 /* ERProgressHudTests */,
244 | 50316D2E203F443100457917 /* ERProgressHudUITests */,
245 | );
246 | };
247 | /* End PBXProject section */
248 |
249 | /* Begin PBXResourcesBuildPhase section */
250 | 50316D0A203F443100457917 /* Resources */ = {
251 | isa = PBXResourcesBuildPhase;
252 | buildActionMask = 2147483647;
253 | files = (
254 | 50316D1C203F443100457917 /* LaunchScreen.storyboard in Resources */,
255 | 50316D19203F443100457917 /* Assets.xcassets in Resources */,
256 | 50316D17203F443100457917 /* Main.storyboard in Resources */,
257 | );
258 | runOnlyForDeploymentPostprocessing = 0;
259 | };
260 | 50316D22203F443100457917 /* Resources */ = {
261 | isa = PBXResourcesBuildPhase;
262 | buildActionMask = 2147483647;
263 | files = (
264 | );
265 | runOnlyForDeploymentPostprocessing = 0;
266 | };
267 | 50316D2D203F443100457917 /* Resources */ = {
268 | isa = PBXResourcesBuildPhase;
269 | buildActionMask = 2147483647;
270 | files = (
271 | );
272 | runOnlyForDeploymentPostprocessing = 0;
273 | };
274 | /* End PBXResourcesBuildPhase section */
275 |
276 | /* Begin PBXSourcesBuildPhase section */
277 | 50316D08203F443100457917 /* Sources */ = {
278 | isa = PBXSourcesBuildPhase;
279 | buildActionMask = 2147483647;
280 | files = (
281 | 50316D14203F443100457917 /* ViewController.m in Sources */,
282 | 50316D1F203F443100457917 /* main.m in Sources */,
283 | 50316D11203F443100457917 /* AppDelegate.m in Sources */,
284 | 50316D44203F449200457917 /* ERProgressHud.m in Sources */,
285 | );
286 | runOnlyForDeploymentPostprocessing = 0;
287 | };
288 | 50316D20203F443100457917 /* Sources */ = {
289 | isa = PBXSourcesBuildPhase;
290 | buildActionMask = 2147483647;
291 | files = (
292 | 50316D29203F443100457917 /* ERProgressHudTests.m in Sources */,
293 | );
294 | runOnlyForDeploymentPostprocessing = 0;
295 | };
296 | 50316D2B203F443100457917 /* Sources */ = {
297 | isa = PBXSourcesBuildPhase;
298 | buildActionMask = 2147483647;
299 | files = (
300 | 50316D34203F443100457917 /* ERProgressHudUITests.m in Sources */,
301 | );
302 | runOnlyForDeploymentPostprocessing = 0;
303 | };
304 | /* End PBXSourcesBuildPhase section */
305 |
306 | /* Begin PBXTargetDependency section */
307 | 50316D26203F443100457917 /* PBXTargetDependency */ = {
308 | isa = PBXTargetDependency;
309 | target = 50316D0B203F443100457917 /* ERProgressHud */;
310 | targetProxy = 50316D25203F443100457917 /* PBXContainerItemProxy */;
311 | };
312 | 50316D31203F443100457917 /* PBXTargetDependency */ = {
313 | isa = PBXTargetDependency;
314 | target = 50316D0B203F443100457917 /* ERProgressHud */;
315 | targetProxy = 50316D30203F443100457917 /* PBXContainerItemProxy */;
316 | };
317 | /* End PBXTargetDependency section */
318 |
319 | /* Begin PBXVariantGroup section */
320 | 50316D15203F443100457917 /* Main.storyboard */ = {
321 | isa = PBXVariantGroup;
322 | children = (
323 | 50316D16203F443100457917 /* Base */,
324 | );
325 | name = Main.storyboard;
326 | sourceTree = "";
327 | };
328 | 50316D1A203F443100457917 /* LaunchScreen.storyboard */ = {
329 | isa = PBXVariantGroup;
330 | children = (
331 | 50316D1B203F443100457917 /* Base */,
332 | );
333 | name = LaunchScreen.storyboard;
334 | sourceTree = "";
335 | };
336 | /* End PBXVariantGroup section */
337 |
338 | /* Begin XCBuildConfiguration section */
339 | 50316D36203F443100457917 /* Debug */ = {
340 | isa = XCBuildConfiguration;
341 | buildSettings = {
342 | ALWAYS_SEARCH_USER_PATHS = NO;
343 | CLANG_ANALYZER_NONNULL = YES;
344 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
345 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
346 | CLANG_CXX_LIBRARY = "libc++";
347 | CLANG_ENABLE_MODULES = YES;
348 | CLANG_ENABLE_OBJC_ARC = YES;
349 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
350 | CLANG_WARN_BOOL_CONVERSION = YES;
351 | CLANG_WARN_COMMA = YES;
352 | CLANG_WARN_CONSTANT_CONVERSION = YES;
353 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
354 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
355 | CLANG_WARN_EMPTY_BODY = YES;
356 | CLANG_WARN_ENUM_CONVERSION = YES;
357 | CLANG_WARN_INFINITE_RECURSION = YES;
358 | CLANG_WARN_INT_CONVERSION = YES;
359 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
360 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
361 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
362 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
363 | CLANG_WARN_STRICT_PROTOTYPES = YES;
364 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
365 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
366 | CLANG_WARN_UNREACHABLE_CODE = YES;
367 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
368 | CODE_SIGN_IDENTITY = "iPhone Developer";
369 | COPY_PHASE_STRIP = NO;
370 | DEBUG_INFORMATION_FORMAT = dwarf;
371 | ENABLE_STRICT_OBJC_MSGSEND = YES;
372 | ENABLE_TESTABILITY = YES;
373 | GCC_C_LANGUAGE_STANDARD = gnu11;
374 | GCC_DYNAMIC_NO_PIC = NO;
375 | GCC_NO_COMMON_BLOCKS = YES;
376 | GCC_OPTIMIZATION_LEVEL = 0;
377 | GCC_PREPROCESSOR_DEFINITIONS = (
378 | "DEBUG=1",
379 | "$(inherited)",
380 | );
381 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
382 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
383 | GCC_WARN_UNDECLARED_SELECTOR = YES;
384 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
385 | GCC_WARN_UNUSED_FUNCTION = YES;
386 | GCC_WARN_UNUSED_VARIABLE = YES;
387 | IPHONEOS_DEPLOYMENT_TARGET = 11.2;
388 | MTL_ENABLE_DEBUG_INFO = YES;
389 | ONLY_ACTIVE_ARCH = YES;
390 | SDKROOT = iphoneos;
391 | };
392 | name = Debug;
393 | };
394 | 50316D37203F443100457917 /* Release */ = {
395 | isa = XCBuildConfiguration;
396 | buildSettings = {
397 | ALWAYS_SEARCH_USER_PATHS = NO;
398 | CLANG_ANALYZER_NONNULL = YES;
399 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
400 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
401 | CLANG_CXX_LIBRARY = "libc++";
402 | CLANG_ENABLE_MODULES = YES;
403 | CLANG_ENABLE_OBJC_ARC = YES;
404 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
405 | CLANG_WARN_BOOL_CONVERSION = YES;
406 | CLANG_WARN_COMMA = YES;
407 | CLANG_WARN_CONSTANT_CONVERSION = YES;
408 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
409 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
410 | CLANG_WARN_EMPTY_BODY = YES;
411 | CLANG_WARN_ENUM_CONVERSION = YES;
412 | CLANG_WARN_INFINITE_RECURSION = YES;
413 | CLANG_WARN_INT_CONVERSION = YES;
414 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
415 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
416 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
417 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
418 | CLANG_WARN_STRICT_PROTOTYPES = YES;
419 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
420 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
421 | CLANG_WARN_UNREACHABLE_CODE = YES;
422 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
423 | CODE_SIGN_IDENTITY = "iPhone Developer";
424 | COPY_PHASE_STRIP = NO;
425 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
426 | ENABLE_NS_ASSERTIONS = NO;
427 | ENABLE_STRICT_OBJC_MSGSEND = YES;
428 | GCC_C_LANGUAGE_STANDARD = gnu11;
429 | GCC_NO_COMMON_BLOCKS = YES;
430 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
431 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
432 | GCC_WARN_UNDECLARED_SELECTOR = YES;
433 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
434 | GCC_WARN_UNUSED_FUNCTION = YES;
435 | GCC_WARN_UNUSED_VARIABLE = YES;
436 | IPHONEOS_DEPLOYMENT_TARGET = 11.2;
437 | MTL_ENABLE_DEBUG_INFO = NO;
438 | SDKROOT = iphoneos;
439 | VALIDATE_PRODUCT = YES;
440 | };
441 | name = Release;
442 | };
443 | 50316D39203F443100457917 /* Debug */ = {
444 | isa = XCBuildConfiguration;
445 | buildSettings = {
446 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
447 | CODE_SIGN_STYLE = Automatic;
448 | DEVELOPMENT_TEAM = XHKF76T836;
449 | INFOPLIST_FILE = ERProgressHud/Info.plist;
450 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
452 | PRODUCT_BUNDLE_IDENTIFIER = com.emraz.ERProgressHud;
453 | PRODUCT_NAME = "$(TARGET_NAME)";
454 | TARGETED_DEVICE_FAMILY = "1,2";
455 | };
456 | name = Debug;
457 | };
458 | 50316D3A203F443100457917 /* Release */ = {
459 | isa = XCBuildConfiguration;
460 | buildSettings = {
461 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
462 | CODE_SIGN_STYLE = Automatic;
463 | DEVELOPMENT_TEAM = XHKF76T836;
464 | INFOPLIST_FILE = ERProgressHud/Info.plist;
465 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
466 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
467 | PRODUCT_BUNDLE_IDENTIFIER = com.emraz.ERProgressHud;
468 | PRODUCT_NAME = "$(TARGET_NAME)";
469 | TARGETED_DEVICE_FAMILY = "1,2";
470 | };
471 | name = Release;
472 | };
473 | 50316D3C203F443100457917 /* Debug */ = {
474 | isa = XCBuildConfiguration;
475 | buildSettings = {
476 | BUNDLE_LOADER = "$(TEST_HOST)";
477 | CODE_SIGN_STYLE = Automatic;
478 | INFOPLIST_FILE = ERProgressHudTests/Info.plist;
479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
480 | PRODUCT_BUNDLE_IDENTIFIER = com.emraz.ERProgressHudTests;
481 | PRODUCT_NAME = "$(TARGET_NAME)";
482 | TARGETED_DEVICE_FAMILY = "1,2";
483 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ERProgressHud.app/ERProgressHud";
484 | };
485 | name = Debug;
486 | };
487 | 50316D3D203F443100457917 /* Release */ = {
488 | isa = XCBuildConfiguration;
489 | buildSettings = {
490 | BUNDLE_LOADER = "$(TEST_HOST)";
491 | CODE_SIGN_STYLE = Automatic;
492 | INFOPLIST_FILE = ERProgressHudTests/Info.plist;
493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
494 | PRODUCT_BUNDLE_IDENTIFIER = com.emraz.ERProgressHudTests;
495 | PRODUCT_NAME = "$(TARGET_NAME)";
496 | TARGETED_DEVICE_FAMILY = "1,2";
497 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ERProgressHud.app/ERProgressHud";
498 | };
499 | name = Release;
500 | };
501 | 50316D3F203F443100457917 /* Debug */ = {
502 | isa = XCBuildConfiguration;
503 | buildSettings = {
504 | CODE_SIGN_STYLE = Automatic;
505 | INFOPLIST_FILE = ERProgressHudUITests/Info.plist;
506 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
507 | PRODUCT_BUNDLE_IDENTIFIER = com.emraz.ERProgressHudUITests;
508 | PRODUCT_NAME = "$(TARGET_NAME)";
509 | TARGETED_DEVICE_FAMILY = "1,2";
510 | TEST_TARGET_NAME = ERProgressHud;
511 | };
512 | name = Debug;
513 | };
514 | 50316D40203F443100457917 /* Release */ = {
515 | isa = XCBuildConfiguration;
516 | buildSettings = {
517 | CODE_SIGN_STYLE = Automatic;
518 | INFOPLIST_FILE = ERProgressHudUITests/Info.plist;
519 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
520 | PRODUCT_BUNDLE_IDENTIFIER = com.emraz.ERProgressHudUITests;
521 | PRODUCT_NAME = "$(TARGET_NAME)";
522 | TARGETED_DEVICE_FAMILY = "1,2";
523 | TEST_TARGET_NAME = ERProgressHud;
524 | };
525 | name = Release;
526 | };
527 | /* End XCBuildConfiguration section */
528 |
529 | /* Begin XCConfigurationList section */
530 | 50316D07203F443100457917 /* Build configuration list for PBXProject "ERProgressHud" */ = {
531 | isa = XCConfigurationList;
532 | buildConfigurations = (
533 | 50316D36203F443100457917 /* Debug */,
534 | 50316D37203F443100457917 /* Release */,
535 | );
536 | defaultConfigurationIsVisible = 0;
537 | defaultConfigurationName = Release;
538 | };
539 | 50316D38203F443100457917 /* Build configuration list for PBXNativeTarget "ERProgressHud" */ = {
540 | isa = XCConfigurationList;
541 | buildConfigurations = (
542 | 50316D39203F443100457917 /* Debug */,
543 | 50316D3A203F443100457917 /* Release */,
544 | );
545 | defaultConfigurationIsVisible = 0;
546 | defaultConfigurationName = Release;
547 | };
548 | 50316D3B203F443100457917 /* Build configuration list for PBXNativeTarget "ERProgressHudTests" */ = {
549 | isa = XCConfigurationList;
550 | buildConfigurations = (
551 | 50316D3C203F443100457917 /* Debug */,
552 | 50316D3D203F443100457917 /* Release */,
553 | );
554 | defaultConfigurationIsVisible = 0;
555 | defaultConfigurationName = Release;
556 | };
557 | 50316D3E203F443100457917 /* Build configuration list for PBXNativeTarget "ERProgressHudUITests" */ = {
558 | isa = XCConfigurationList;
559 | buildConfigurations = (
560 | 50316D3F203F443100457917 /* Debug */,
561 | 50316D40203F443100457917 /* Release */,
562 | );
563 | defaultConfigurationIsVisible = 0;
564 | defaultConfigurationName = Release;
565 | };
566 | /* End XCConfigurationList section */
567 | };
568 | rootObject = 50316D04203F443100457917 /* Project object */;
569 | }
570 |
--------------------------------------------------------------------------------