Fix build (IOS-14)

This commit is contained in:
Nathan Mattes 2023-06-28 09:46:41 +02:00
parent 79ba6ed13f
commit 7c977d562f
1 changed files with 6 additions and 6 deletions

View File

@ -24,16 +24,16 @@ class AboutViewController: UIViewController {
super.init(nibName: nil, bundle: nil)
let tableViewDataSource = UITableViewDiffableDataSource<AboutSettingsSection, AboutSettingsEntry>(tableView: tableView) { [weak self] tableView, indexPath, itemIdentifier in
guard let self,
let cell = tableView.dequeueReusableCell(withIdentifier: AboutMastodonTableViewCell.reuseIdentifier, for: indexPath) as? AboutMastodonTableViewCell else { fatalError("WTF?? Wrong Cell dude!") }
let entry = sections[indexPath.section].entries[indexPath.row]
let cell = tableView.dequeueReusableCell(withIdentifier: AboutMastodonTableViewCell.reuseIdentifier, for: indexPath) as? AboutMastodonTableViewCell else { fatalError("WTF?? Wrong Cell dude!") }
let entry = self.sections[indexPath.section].entries[indexPath.row]
cell.configure(with: entry)
return cell
}
tableView.delegate = self
tableView.dataSource = tableViewDataSource
self.tableViewDataSource = tableViewDataSource