Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i remove any animations when i filp the card ? #6

Open
freemjstudio opened this issue Jan 8, 2022 · 1 comment
Open

How do i remove any animations when i filp the card ? #6

freemjstudio opened this issue Jan 8, 2022 · 1 comment

Comments

@freemjstudio
Copy link

How do i remove any animations when i swipe the cards ?
I want to remove the animation that the cards are shrink when they are swiped

@dadalar
Copy link
Owner

dadalar commented Jan 10, 2022

Hey @freemjstudio. If you just want to disable swipe animations (cards continuing out of the screen) then you can specify the animation of the cardStackConfiguration.

This would set the animation time to zero for example:

CardStack(/* card stack init */)
    .environment(\.cardStackConfiguration, .init(animation: .linear(duration: 0)))

There is no way to change the transition itself at the moment I'm afraid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants