Last active
April 1, 2019 09:16
-
-
Save yonivav/98337fe400e49ef0001b93e16a7969ad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let dataSource = RxTableViewSectionedReloadDataSource<CustomSection>( | |
configureCell: { [weak self] _, tableView, indexPath, viewModel in | |
guard let cell = tableView.dequeueReusableCell(withIdentifier: CustomTableViewCell.reuseIdentifer, for: indexPath) as? CustomTableViewCell else { return UITableViewCell() } | |
cell.viewModel = viewModel | |
cell.disposeBag = self?.disposeBag // Bad idea, don't do this! | |
return cell | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment