Sample MVVM-C + CLEAN implementation for GitHub 'users' API
MVVM-C
+ CLEAN
implementation for GitHub ‘users’ API.This app lists up all users by querying the username, and includes the unit tests for the view models.
By binding multiple Views with a single View Model, the user list can be displayed as table view, and collection view as well.
As CLEAN architecture provides the separation by responsibilities as layers, the MVVM components can be placed in the corresponding layers.
You can find..
Model
in Data LayerView Model
in Domain LayerView
in Presentation Layer( GitHoop )Each layers interact via the interfaces( -ProviderType, -ViewModelType ) that are provided by Domain Layer.