You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
TL;DR: If the toValue of an animation equals the target's current value (even if the fromValue does not) then the completionBlock will be called immediately with a truthy completed value.
Imagine we have a red square we've hidden by setting it's alpha to 0.0. Now we want to flash it in to alpha 1.0 and slowly fade it out. We might add a basic animation like this:
The result is that the completionBlock will be called immediately despite the animation itself taking 10 seconds and properly animating.
This elusive bug has bitten me for years and I've only now connected the dots. 😆 I'd love to create a PR if anyone with intimate knowledge of the library could help set me off in the right direction to patch it and add the proper tests.