EmptyStateKit icon indicating copy to clipboard operation
EmptyStateKit copied to clipboard

Allow public get for view.emptyState.state

Open gustavodiel opened this issue 6 years ago • 0 comments

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!

gustavodiel avatar Jan 15 '20 02:01 gustavodiel