I have seen many codes where 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?