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

Shake correct number of times, instead of 1/2 as much #21

Merged
merged 1 commit into from
Aug 21, 2017

Conversation

ethansinjin
Copy link
Contributor

This could be intended behavior, but by decrementing "times" and incrementing "currentTimes" with each function call, the UITextField will only complete 1/2 as many full shakes as desired.

By "shake", did you mean "one direction" or "a full transform in both directions"?

If this change isn't wanted, perhaps adding some documentation about what constitutes a shake would be nice?

Great class extension, by the way!

@andreamazz
Copy link
Owner

This could be intended behavior

Good question 😬
I think this is better though, thanks for the PR

@andreamazz andreamazz merged commit 1b67699 into andreamazz:master Aug 21, 2017
@ethansinjin ethansinjin deleted the patch-2 branch August 22, 2017 15:14
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.

2 participants