feat: Image add isAnimating, startAnimating and stopAnimating API

This commit is contained in:
pengfei.zhou
2021-09-26 16:27:13 +08:00
committed by osborn
parent 3fd8405e0b
commit 63e0d1c38c
13 changed files with 213 additions and 36 deletions

View File

@@ -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