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

Animation for Liked and Nope button does not work #42

Closed
kong707 opened this issue Feb 28, 2015 · 5 comments
Closed

Animation for Liked and Nope button does not work #42

kong707 opened this issue Feb 28, 2015 · 5 comments

Comments

@kong707
Copy link
Contributor

kong707 commented Feb 28, 2015

When user tap Liked or Nope button . The action works correctly except that the frontView is completely disappear without any animation . How can I solve this ? The example app works just fine .But when I use it on my project ,it does not work.

@kong707
Copy link
Contributor Author

kong707 commented Feb 28, 2015

Here is the warning i got
: CGAffineTransformInvert: singular matrix.

@kong707
Copy link
Contributor Author

kong707 commented Feb 28, 2015

I found out the problem. But have not found the solution yet.
in - (void)mdc_rotateForTranslation:rotationDirection:
After calling this line to specify that view has to be rotated
self.transform = CGAffineTransformRotate(self.mdc_viewState.originalTransform,
rotationDirection * rotation);

The self.frame.size changed to CGZero. Not sure why this is happening. In my app, I have customed the ChoosePeopleView in the example to display only image. This might be the cause of problem.

@kong707
Copy link
Contributor Author

kong707 commented Feb 28, 2015

self.mdc_viewState.originalTransform always return zero matrix because it was not initiated properly.
Putting self.mdc_viewState.originalTransform = self.transform;
in - (void)mdc_swipeToChooseSetup:(MDCSwipeOptions *)options
Solved my problem.

@kong707 kong707 closed this as completed Feb 28, 2015
@modocache
Copy link
Owner

@kong707 Thanks! Could you submit a pull request with the change that got things working for you? 🙏

@kong707
Copy link
Contributor Author

kong707 commented Mar 1, 2015

@modocache Done. Thanks for this module as well.

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

No branches or pull requests

2 participants