Skip to content

Calling stopLoading while startLoading animation is running makes button stuck in loading state #3

@edyanosik-orion

Description

@edyanosik-orion

If you call stopLoading on the button before the animation for startLoading is finished, the CAAnimationDelegate's animationDidStop for "ShrinkStart" sets the stateLayer's currentState to ".loading" even though stopLoading set the state to success or error and so the button gets stuck in the loading state.

It's annoying and unideal for the user to have to add delays before stopping the loading.

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