Last active
November 7, 2022 16:21
-
-
Save sebastienwindal/cee24ccf57e5e33ed37fc9f2b9a1659b 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
// 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