2

For using SkeletonView you have to implement UITableView/UICollectionView dataSource which i can't use beacuse i'm using tableView.rx.items to bind my table to some observable. so how can i use RxCocoa besides SkeletonView.

any suggestion?

For more info: RxSkeleton library is not good idea for a non-RxDataSourced tableView

Mehrdad
  • 1,050
  • 1
  • 16
  • 27

1 Answers1

1

You can always create your own data source. Just write a class that conforms to both SkeletonTableViewDataSource and RxTableViewDataSourceType then you can pass an instance into items.

Daniel T.
  • 32,821
  • 6
  • 50
  • 72
  • Thanks for your answer. can you please give a complete example code on a repo or here? @Daniel T. – Mehrdad Feb 04 '21 at 10:53
  • 1
    No I can't. I've never used `SkeletonTableView`. However, if you create your own type and have it conform to the above two protocols, the compiler will tell you what functions to put it in. – Daniel T. Feb 04 '21 at 12:45