Skip to content

Anvil Transition Animation #81

Open
@esnssr

Description

@esnssr

hey there!

i was looking at the Pow website, and noticed that it mentions a different behavior for the Anvil transition.

in the website, it specifies an animation for the transition, which i thought was possible. however, after using the transition and looking at its implementation, it turns out that this is not possible?

this what the website shows:

but this is what the implementation is:

    static var anvil: AnyTransition {
        .asymmetric(
            insertion: .modifier(
                active:   Anvil(animatableData: 0),
                identity: Anvil(animatableData: 1)
            ),
            removal: .identity
        )
        .animation(.linear(duration: 1.4))
    }

the docs in the repo also specifies that the animation period is 1.4.

so my question is: is it possible so specify an animation? or override the added one?

my main interest is to add a delay for the transition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions