I have seen many applications that set ViewModel as a table view data source, and many which don't.
1.Setting data source to the ViewModel some time makes sense as the data source methods mainly deal with the presentation logic.
2.On the other hand setting the ViewModel as the data source implies that you are implementing "cellForRowAtIndexPath" etc which makes it not independent of UIkit.
What is the best way to architecture your apps, Kindly clarify?
Aucun commentaire:
Enregistrer un commentaire