feat: Image add isAnimating, startAnimating and stopAnimating API
This commit is contained in:
@@ -501,7 +501,7 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id
|
||||
? @(YES)
|
||||
: @(NO),
|
||||
#else
|
||||
@"animated": @(false),
|
||||
@"animated": @(NO),
|
||||
#endif
|
||||
|
||||
},
|
||||
@@ -558,4 +558,21 @@ - (void)afterBlended:(NSDictionary *)props {
|
||||
self.view.image = result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
- (NSNumber *)isAnimating {
|
||||
if (self.view.animating) {
|
||||
return @(YES);
|
||||
} else {
|
||||
return @(NO);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)startAnimating {
|
||||
[self.view startAnimating];
|
||||
}
|
||||
|
||||
- (void)stopAnimating {
|
||||
[self.view stopAnimating];
|
||||
}
|
||||
@end
|
||||
|
Reference in New Issue
Block a user