Restrict smart feeds from swipe commands

This commit is contained in:
Maurice Parker 2021-11-13 10:56:30 -06:00
parent b6eb648f95
commit 0da3bca41e
1 changed files with 8 additions and 0 deletions

View File

@ -170,6 +170,14 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
return cell
}
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
if coordinator.nodeFor(indexPath)?.representedObject is PseudoFeed {
return false
} else {
return true
}
}
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
guard let nameProvider = coordinator.rootNode.childAtIndex(section)?.representedObject as? DisplayNameProvider else {