diff --git a/AfrikaBurn/BurnElementsViewController.swift b/AfrikaBurn/BurnElementsViewController.swift index 3a1fe61..f3fb83e 100644 --- a/AfrikaBurn/BurnElementsViewController.swift +++ b/AfrikaBurn/BurnElementsViewController.swift @@ -55,8 +55,9 @@ class BurnElementsViewController: UIViewController, UISearchResultsUpdating, UIS guard let tableView = tableView else { return } - if shouldShowEmptyFeedCell { + if shouldShowEmptyFeedCell || tableView.numberOfRows(inSection: 0) == 1 { tableView.reloadData() + return } switch changes { case .reload: @@ -211,7 +212,7 @@ extension BurnElementsViewController: UITableViewDelegate { @available(iOS 11.0, *) func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { if shouldShowEmptyFeedCell { - return nil + return UISwipeActionsConfiguration(actions: []) } let element = self.element(at: indexPath)