Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bigMOTOR/b5dde6f3dce23f6b866fc79d1675a071 to your computer and use it in GitHub Desktop.
Save bigMOTOR/b5dde6f3dce23f6b866fc79d1675a071 to your computer and use it in GitHub Desktop.
2021-01-30_Article_DataDrivenRxDatasources_2.swift
let dataSource = RxTableViewSectionedReloadDataSource<SectionOfCustomData>(
configureCell: { dataSource, tableView, indexPath, item in
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath)
cell.textLabel?.text = "Item \(item.anInt): \(item.aString) - \(item.aCGPoint.x):\(item.aCGPoint.y)"
return cell
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment