Aug 22, 2017 · 1 min read
Interesting that you mentioned view states — that is exactly the topic we were discussing in car2go. For the sake of example let’s imagine we have view with some text and progress indicator. There are two possible cases here.
Case 1 — progress is displayed alongside the current information. In this case we’ll go for one state object, without having any ADT.
Case 2 — when view is in progress, all content is removed. In this case we’ll create ADT with two states: Available and Loading.
