Created
January 30, 2021 10:25
-
-
Save bigMOTOR/b5dde6f3dce23f6b866fc79d1675a071 to your computer and use it in GitHub Desktop.
2021-01-30_Article_DataDrivenRxDatasources_2.swift
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
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