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
[TIMOB-10010][TIMOB-10047] Modernize animation, fix autoreverse problems #2630
Conversation
…es to avoid bad behavior. Also, autoreverse now reverses ALL changes made by an animation.
…property reversion support.
if ([animation isReverse]) { | ||
RELEASE_TO_NIL(animation.animatedView); | ||
|
||
animation = [animation reverseAnimation]; // Use the original animation for correct evenitng |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sp: *eventing. :)
NOTE: There should also probably be some internal testing done with enterprise apps known to use animations extensively. This will help get an idea of if there are other important behavior changes. |
[UIView setAnimationRepeatCount:repeatCount]; | ||
} | ||
else { | ||
[UIView setAnimationRepeatCount:1.0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be shortened to [UIView setAnimationRepeatCount:repeatCount != 0.0 ? repeatCount : 1.0];
Code reviewed. APPROVED |
FT PASSED |
[TIMOB-10010][TIMOB-10047] Modernize animation, fix autoreverse problems
This moves the animation subsystem to the block-based system available since iOS 4.x, and also fixes an issue with autoreverse animations where they would be rendered incorrectly upon animation completion (and ignore many properties changed during the animation). Should be fully regression tested against all available KitchenSink animation suites (Base UI->Animation).
TIMOB-10010
TIMOB-10047