Support tintColor animations
Opened this issue · 0 comments
codeman7 commented
Currently animating the tintColor of a spritedAnimationView does not work. I'd like to use a sprite animation and animate the tint color.
Currently I use the following snippet:
MDFSpritedAnimationView *animationView =
[[MDFSpritedAnimationView alloc] initWithSpriteSheetImage:spriteSheetImage];
animationView.tintColor = initialTintColor;
[UIView animateWithDuration:0.2 animations: { animationView.tintColor = finalTintColor }];
[animationView startAnimatingWithCompletion:^(BOOL finished) {
[animationView removeFromSuperview];
}];
Expected behavior
The tint color animates
Actual behavior
The tint color jumps to the final tint color