swiftmvvmrx-swiftrxdatasources

Table View Data Source in MVVM-C


where should I put UITableView Data Sources (I am using RxDataSources) when using MVVM-C architecture?


Solution

  • If you are using MVVM pattern design. You can put your AnimatableSectionModel stuff in your ViewModel. And in your viewController observe and bindTo your tableView datasources.