Skip to content

Commit f760c54

Browse files
committed
Fix color for clear mask type
1 parent fdb8fae commit f760c54

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Demo/WSProgressHUD.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Demo/WSProgressHUD/WSProgressHUD.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ - (void)drawRect:(CGRect)rect
982982
switch (self.maskType) {
983983
case WSProgressHUDMaskTypeClear: {
984984
CGContextRef context = UIGraphicsGetCurrentContext();
985-
[[UIColor colorWithWhite:0 alpha:0.5] set];
985+
[[UIColor clearColor] set];
986986
CGRect bounds = self.bounds;
987987
CGContextFillRect(context, bounds);
988988
}break;

0 commit comments

Comments
 (0)