Skip to content

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

Open

Description

@freemjstudio

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

Activity

  1. dadalar commented on Jan 10, 2022

    @dadalar
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions