forked from omz/AppSales-Mobile
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added MBProgressHUD subclass for custom styling.
Updated MBProgressHUD with bug fix.
- Loading branch information
1 parent
9433ea0
commit 58fdb7b
Showing
11 changed files
with
80 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// ASProgressHUD.h | ||
// AppSales | ||
// | ||
// Created by Nicolas Gomollon on 2/19/18. | ||
// | ||
// | ||
|
||
#import "MBProgressHUD.h" | ||
|
||
@interface ASProgressHUD : MBProgressHUD | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// ASProgressHUD.m | ||
// AppSales | ||
// | ||
// Created by Nicolas Gomollon on 2/19/18. | ||
// | ||
// | ||
|
||
#import "ASProgressHUD.h" | ||
|
||
@implementation ASProgressHUD | ||
|
||
#pragma mark - Lifecycle | ||
|
||
- (instancetype)initWithFrame:(CGRect)frame { | ||
if ((self = [super initWithFrame:frame])) { | ||
[self customInit]; | ||
} | ||
return self; | ||
} | ||
|
||
- (instancetype)initWithCoder:(NSCoder *)aDecoder { | ||
if ((self = [super initWithCoder:aDecoder])) { | ||
[self customInit]; | ||
} | ||
return self; | ||
} | ||
|
||
- (void)customInit { | ||
self.bezelView.layer.cornerRadius = 9.0f; | ||
self.bezelView.blurEffectStyle = UIBlurEffectStyleDark; | ||
self.contentColor = [UIColor whiteColor]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule MBProgressHUD
updated
5 files
+64 −0 | CONTRIBUTING.md | |
+2 −3 | Demo/HudDemo/MBHudDemoViewController.m | |
+114 −1 | Demo/HudTests/HudTests.m | |
+2 −36 | MBProgressHUD.h | |
+26 −257 | MBProgressHUD.m |