@@ -69,7 +69,7 @@ @interface WSProgressHUD ()
6969static UIImage *WSProgressHUDSuccessImage;
7070static UIImage *WSProgressHUDErrorImage;
7171
72- static CGFloat const WSProgressHUDIndicatorBig = 35 ;
72+ static CGFloat const WSProgressHUDIndicatorBig = 31 ;
7373static CGFloat const WSProgressHUDIndicatorSmall = 20 ;
7474
7575static CGFloat WSProgressHUDRingThickness = 2 ;
@@ -341,15 +341,14 @@ - (void)showProgress:(CGFloat)progress status:(NSString*)string maskType:(WSProg
341341 self.ringLayer .strokeEnd = progress;
342342 return ;
343343 }
344-
345344 objc_setAssociatedObject (self, @selector (maskType ), @(maskType), OBJC_ASSOCIATION_ASSIGN );
346345 objc_setAssociatedObject (self, @selector (hudType ), @(WSProgressHUDTypeProgress), OBJC_ASSOCIATION_ASSIGN );
347346 objc_setAssociatedObject (self, @selector (withoutType ), @(withoutType), OBJC_ASSOCIATION_ASSIGN );
347+
348348 [self invalidateTimer ];
349349
350350 [self setMaskEdgeWithType: self .maskType];
351351
352-
353352 [self updateSubviewsPositionWithString: string];
354353
355354 [self showHudViewWithAnimation ];
@@ -1156,11 +1155,6 @@ - (UIImageView *)imageView
11561155 if (!_imageView) {
11571156 _imageView = [[UIImageView alloc ] initWithFrame: CGRectMake (0 , 0 , 28 , 28 )];
11581157 _imageView.hidden = YES ;
1159- if ([_imageView respondsToSelector: @selector (setTintColor: )]) {
1160- [_imageView setTintColor: WSProgressHUDForeGroundColor];
1161- } else {
1162-
1163- }
11641158 }
11651159 return _imageView;
11661160}
@@ -1182,7 +1176,7 @@ - (MMMaterialDesignSpinner *)spinnerView
11821176 if (!_spinnerView) {
11831177 _spinnerView = [[MMMaterialDesignSpinner alloc ] initWithFrame: CGRectZero];
11841178 _spinnerView.bounds = CGRectMake (0 , 0 , 20 , 20 );
1185- _spinnerView. tintColor = WSProgressHUDForeGroundColor ;
1179+ [ _spinnerView setSpinnerColor: [UIColor whiteColor ]] ;
11861180 }
11871181 return _spinnerView;
11881182}
0 commit comments