mac-gallagher / Shuffle

🔥 A multi-directional card swiping library inspired by Tinder
MIT License
897 stars 138 forks source link

Property topCardIndex isn't updated immediately #154

Open lukicmarko opened 11 months ago

lukicmarko commented 11 months ago

After I swiped a card the method func cardStack(_ cardStack: SwipeCardStack, didSwipeCardAt index: Int, with direction: SwipeDirection) of SwipeCardStackDelegate is called.

Printing topCardIndex property of SwipeCardStack object always returns 1, and for index always returns 0