JoniVR / VerticalCardSwiper

A marriage between the Shazam Discover UI and Tinder, built with UICollectionView in Swift.
MIT License
1.4k stars 101 forks source link

[Question] How do I flip a CardCell? #56

Closed nick70007 closed 5 years ago

nick70007 commented 5 years ago

New Issue Checklist

Question

JoniVR commented 5 years ago

Hi @nick70007

I don't mean to be rude but I'm pretty sure you can find this answer on Google. This library is built with a UICollectionView and CardCell inherits from UICollectionViewCell.

Please use Google (or any other search engine) to find your answer as it's not library related and I'm not your personal programmer/research person. If you run into additional issues that are related to this library, feel free to reopen.

Kind regards, Joni

nick70007 commented 5 years ago

hello sir, but just want to ask is there any method in this library through which i can flip the card cell?

nick70007 commented 5 years ago

ok related to this library, when i run the app the card is displayed but one after another, is there any settings in this library so that all the cards initially are behind each other

nick70007 commented 5 years ago

Simulator Screen Shot - iPhone 8 - 2019-07-10 at 16 48 56 its looking like this

nick70007 commented 5 years ago

i want it to be one after another like in tinder

JoniVR commented 5 years ago

Is there any method in this library through which i can flip the card cell?

You can use the didTapCard delegate method to detect a cell tap (as indicated in the documentation) and then flip the card yourself, you can find on the internet on how to flip a UICollectionViewCell.

ok related to this library, when i run the app the card is displayed the documentations there any settings in this library so that all the cards initially are behind each other

i want it to be one after another like in tinder

No this is not possible and is not what this library tries to do, use another library like tispr-card-stack or Kolada.