     
     func clearRecentSearches() {
         SearchTableViewManager.shared.deleteAllRecents()
-        tableView.reloadData()
+        recentLocations = []
+        sections = createSections()
     }
 }
 

        banner = nil
        
        switch reachability.connection {
//        case .none:
//            banner = StatusBarNotificationBanner(title: Constants.Banner.noInternetConnection, style: .danger)
//            banner?.autoDismiss = false
//            banner?.show(queuePosition: .front, on: navigationController)
//            isNetworkDown = true
//            searchBar.isUserInteractionEnabled = false
//            sections = []
        case .cellular, .wifi, .none:
            isNetworkDown = false
            sections = createSections()
            searchBar.isUserInteractionEnabled = true

    
    func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
        if editingStyle == .delete {
            switch sections[indexPath.section].type {
            case .favorites:
                let place = sections[indexPath.section].items[indexPath.row]
                favorites = SearchTableViewManager.shared.deleteFavorite(favorite: place, allFavorites: favorites)
                sections = createSections()
            case .recentSearches:
                let place = sections[indexPath.section].items[indexPath.row]
                recentLocations = SearchTableViewManager.shared.deleteRecent(recent: place, allRecents: recentLocations)
                sections = createSections()
            default: break
            }
            
        }
    }
    
