42
Views
2
Comments
How to display the previous item when using stacked
Question
Application Type
Mobile
Platform Version
11.54.6 (Build 62311)

Hey guys,

The default working of stacked card is if i swipe right or left it will show me the next card. But what i want to do is , I want to implement logic to view the previous card when i swipe left and view next card when i swipe right. Any help will be appreciated


Thankyou, 

Abhishek Dubey

2018-10-29 08-31-03
João Marques
 
MVP

Hi Abhishek,


I think it is not the purpose of the stacked cards to behave like this.

For the scenario you are proposing, to keep the previous cards and swipe left to go back and right to go next, I would suggest to use the Carousel component.


Kind Regards,
João

2022-12-27 11-36-51
Abhishek Dubey

Hi João,

I know it is not the correct scenario but I have seen stacked cards working the same way for example, tinder. In tinder there is swipe left and swipe right feature which performs different action but there is also an undo button which brings the previously swiped card on the screen. I am trying to implement something like that and thankyou for your suggestion regarding carousel but I don't think carousel will be a look good with my current scenario. 


Thankyou, 

Abhishek Dubey.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.