You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The second card pass through the first one after swiping #4
Look closely, the second card pass through the first one after swiping, before it completely disappear. It looks / feels like the first card moved backwards and been drew out after the second card.
This is a known issue and in order to fix it I believe we need to change how we animate cards to outside of the screen. Current transition I used is one of SwiftUI defaults and needs to be replaced by custom animation. If you want to try fixing this or have any other way of fixing this, please let me know.
ghost changed the title [-]The second card pass through the first card after swiping[/-][+]The second card pass through the first one after swiping[/+]on Sep 15, 2020
Hi @ildarnm. Interesting because you're setting the same zIndex (1) for all cards. Maybe we can set negative index argument (.zIndex(-index)) or relativeIndex? Do you want to create a PR for that so that you can be the author?
Activity
dadalar commentedon Sep 15, 2020
This is a known issue and in order to fix it I believe we need to change how we animate cards to outside of the screen. Current transition I used is one of SwiftUI defaults and needs to be replaced by custom animation. If you want to try fixing this or have any other way of fixing this, please let me know.
[-]The second card pass through the first card after swiping[/-][+]The second card pass through the first one after swiping[/+]ildarnm commentedon Aug 28, 2022
Hi @dadalar It looks like adding zIndex(1) for CardView in the card function fixes animation
dadalar commentedon Aug 30, 2022
Hi @ildarnm. Interesting because you're setting the same zIndex (1) for all cards. Maybe we can set negative index argument (
.zIndex(-index)) or relativeIndex? Do you want to create a PR for that so that you can be the author?