I'w wonder is there any code example for RxSwift
when I can use multiple custom cells inside one table view. So for example I have two section and first section has 10 cells with type CellWithImage
identifier and second section has 10 cells with type CellWithVideo
identifier.
All tuts and code examples which I've founded are using only one cell type, for instance RxSwiftTableViewExample
Thanks for any help
You can set multiple custom cell without RxDatasource.
In case anybody's interested, here's my implementation. I have an app with a list of games. Depending if the game is finished or still on going i use different cells. Here's my code:
In the ViewModel, I have a list of game, split them into finished/ongoing ones and map them to
SectionModel
Then in the ViewController, I bind my sections to my tableview, and use different cells like this. Note that I could use the indexPath to get the right cell instead of the status.
I've managed it using RxSwiftDataSources,
it allow you to use custom cells with multi sections. I've used this code for help