Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tintColor animations #8

Open
codeman7 opened this issue Dec 3, 2019 · 0 comments
Open

Support tintColor animations #8

codeman7 opened this issue Dec 3, 2019 · 0 comments

Comments

@codeman7
Copy link
Member

codeman7 commented Dec 3, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant