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

Adding swiped view back to the views stack but at bottom #77

Open
Daemon-Devarshi opened this issue Aug 8, 2016 · 3 comments
Open

Adding swiped view back to the views stack but at bottom #77

Daemon-Devarshi opened this issue Aug 8, 2016 · 3 comments

Comments

@Daemon-Devarshi
Copy link

I want to achieve something like this:

  1. User swipes the top most view, either towards left or right
  2. The swiped view is added to the bottom of view stack
  3. So say if there were three views then first view is re-visible after third swipe

Is it something which can be achieved out of the box or does it need customization in existing code base? Any code pointers shall be helpful.

Thanks in advance.

@rogerluan
Copy link

I'm also looking to achieve this :/

Tip: if you play around with the sample project and edit the ZLSwipeableView rewind function so it puts the rewinded view at index 0 (or 1), it attempts to do what we're looking for. But it's very buggy, for unknown reasons (I just played around for a few mins though).

Any progress in your work achieving this @Daemon-Devarshi ? :)

Thanks

@rogerluan
Copy link

Just noted something... What we're looking for is to perform a "topView -> swipe to X direction" and then make that topView become the nextView (in the data source method). That way, it'll animate going the bottom of the deck. ;) @Daemon-Devarshi

@jstxx
Copy link

jstxx commented Sep 28, 2016

You could append swipeableView.history.last in the swipeableView.didSwipe method

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

3 participants