EmptyStateKit
EmptyStateKit copied to clipboard
Allow public get for view.emptyState.state
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!