Skip to content

Instantly share code, notes, and snippets.

@sebastienwindal
Last active November 7, 2022 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastienwindal/cee24ccf57e5e33ed37fc9f2b9a1659b to your computer and use it in GitHub Desktop.
Save sebastienwindal/cee24ccf57e5e33ed37fc9f2b9a1659b to your computer and use it in GitHub Desktop.
// 1.
override func viewDidLoad() {
super.viewDidLoad()
dataSource = CardListDataSource(
tableView: tableView,
onPlusTapped: { self in
self.launchCardIssue()
})
}
// 2.
class CardListDataSource: UITableViewDiffableDataSource<CardListSection, CardListItem> {
init(tableView: UITableView, onPlusTapped: @escaping (() -> Void)) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment