Skip to content

Allow public get for view.emptyState.state #10

@gustavodiel

Description

@gustavodiel

It'd be cool to get the current state of each view in so that if it is already displaying the desired state, we don't need to replay the animation, like

func onReaload() {
    ...
    if view.emptyState.state != MyStates.noInternet {
       view.emptyState.show(MyState.noInternet)
    }
}

or maybe have another attribute for that, like view.emptyState.currentState.

If y'all agree, I could make the PR no problem!

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