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

Fix the reset to CGAffineTransformIdentity not being animated #5

Merged
merged 1 commit into from May 28, 2014

Conversation

guillaumealgis
Copy link
Contributor

When reseting the text field to its original position with CGAffineTransformIdentity, the change is not animated, which makes the text field "jump" at the end of the animation.

Before fix: https://dl.dropboxusercontent.com/u/18386288/UIView%2BShake_before.mov
After fix: https://dl.dropboxusercontent.com/u/18386288/UIView%2BShake_after.mov

(sorry, .mov videos, could not find a satisfying gif converter...)

Also, please note that the first and last animations are executed with the same duration as all the others shakes, but the distance travelled by the view is 2x smaller, making these appear "slower".

Issue mirrored for UIView+Shake here: andreamazz/UIView-Shake#1

@andreamazz
Copy link
Owner

Once again, thanks!

andreamazz added a commit that referenced this pull request May 28, 2014
Fix the reset to CGAffineTransformIdentity not being animated
@andreamazz andreamazz merged commit b9558cc into andreamazz:master May 28, 2014
@guillaumealgis guillaumealgis deleted the fix-transform-reset branch May 28, 2014 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants