Add Infinite Cards Example
Possible starting on version 3.0.1
Hi, any update on this enhancement? Or a way around start over card swiping like a circular loop? Thank you for providing this library.
@skdevil see my answer here https://github.com/mac-gallagher/Shuffle/issues/59#issuecomment-629024241
@mac-gallagher Thanks, got it. Though after swiping all cards, if I reload it starts from the beginning, I can use that, looks a bit glitchy, as the view are removed and added again, but that will do for now. Thank you.
Have you tried the appendCards method? You should only reload data if you want to start over and clear your swipe history
Yes, I have two requirements:
- Load cards via a paginated API call
- Once all data is loaded and you are on the last card, it should start over again.
So if I have 500 cards initially, I can append those 500 data elements again, but if I keep doing this, there will be performance issues right, as you maintain an array? For now, I won't be using undo or swipe back operation.
Please let me know if I am wrong.
I would not add all 500 at once, but even so, it should be no problem for the library. It just maintains an array of integers
Great! Will use appendCards then, but of course, appending the same data in chunk.