Remove the indicatorWidth property. Use can use the indicatorView to directly modify the frame or constraint

This commit is contained in:
DreamPiggy 2018-02-04 15:11:35 +08:00
parent 529f6fe4bf
commit d28870cd52
2 changed files with 1 additions and 15 deletions

View File

@ -87,14 +87,10 @@
#else #else
@property (nonatomic, strong, readonly, nonnull) NSProgressIndicator *indicatorView; @property (nonatomic, strong, readonly, nonnull) NSProgressIndicator *indicatorView;
#endif #endif
/**
The preferred width for progress indicator. The getter and setter just pass to the indicatorView's frame. The default value is `UIProgressView`'s natural width.
*/
@property (nonatomic, assign) CGFloat indicatorWidth;
@end @end
// Convenience way to use progress indicator. Remember to set the indicatorWidth // Convenience way to create progress indicator. Remember to specify the indicator width or use layout constraint if need.
@interface SDWebImageProgressIndicator (Conveniences) @interface SDWebImageProgressIndicator (Conveniences)
/// default-style progress indicator /// default-style progress indicator

View File

@ -161,16 +161,6 @@
} }
#endif #endif
- (CGFloat)indicatorWidth {
return self.indicatorView.frame.size.width;
}
- (void)setIndicatorWidth:(CGFloat)indicatorWidth {
CGRect frame = self.indicatorView.frame;
frame.size.width = indicatorWidth;
self.indicatorView.frame = frame;
}
- (void)startAnimatingIndicator { - (void)startAnimatingIndicator {
self.indicatorView.hidden = NO; self.indicatorView.hidden = NO;
#if SD_UIKIT #if SD_UIKIT