Skip to content

Instantly share code, notes, and snippets.

@kbw2204
Created March 28, 2021 06:50
Show Gist options
  • Save kbw2204/bcc8c85c600f98944a805291e5a7db16 to your computer and use it in GitHub Desktop.
Save kbw2204/bcc8c85c600f98944a805291e5a7db16 to your computer and use it in GitHub Desktop.
private let dataSource = RxTableViewSectionedReloadDataSource<RepoSectionModel>(
configureCell: { _, tableView, indexPath, model in
guard
let cell = tableView.dequeueReusableCell(
withIdentifier: "\(RepoTableViewCell.self)",
for: indexPath
) as? RepoTableViewCell
else {
return UITableViewCell()
}
cell.configCell(repo: model)
return cell
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment