Created
February 20, 2019 20:42
-
-
Save yonivav/d78ec999931258b29e34dcb440c2c041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private let dataSource = RxTableViewSectionedReloadDataSource<TableViewSection>( | |
configureCell: { [weak self] _, table, indexPath, viewModel in | |
guard let cell = table.dequeueReusableCell(withIdentifier: TableViewCell.reuseIdentifier, for: indexPath) as? TableViewCell else { | |
return UITableViewCell() | |
} | |
cell.viewModel = viewModel | |
cell.disposeBag = self.disposeBag // Bad Idea, don't do that! | |
return cell | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment