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

Fold animation not working for the first tim after setPaperFoldState:animated: if animated is NO #72

Open
MihaiDamian opened this issue Jul 8, 2014 · 1 comment

Comments

@MihaiDamian
Copy link

Steps to reproduce:

  1. Open the PaperFold project
  2. Insert this line in init after the views are setup:
    [_paperFoldView setPaperFoldState:PaperFoldStateLeftUnfolded animated:NO];
  3. Run the app and observe the left view. It is unfolded, as expected.
  4. Swipe left to fold the left view
  5. Instead of the left view folding it is simply covered by the center view

If you unfold the left view again and fold it it will work, but the first time it doesn't. This bug only happens if the state is set with animations turned off.

@MihaiDamian
Copy link
Author

One workaround is to call foldWillOpen on the fold view that is unfolded by setPaperFoldState:animated:. Something like this:
[_paperFoldView.leftFoldView foldWillOpen];
This seems to initialize some internal state in the MultiFoldView that seems to be missed by calling setPaperFoldState:animated:

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

1 participant