update demo app

This commit is contained in:
John Estropia
2019-10-17 12:32:47 +09:00
parent 0c19c878c5
commit 9764f33086
4 changed files with 70 additions and 27 deletions

View File

@@ -215,6 +215,21 @@ extension DiffableDataSource {
// }
}
@objc
open dynamic func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
return true
}
@objc
open dynamic func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCell.EditingStyle {
return .delete
}
@objc
open dynamic func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {}
// MARK: Private