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

    
    func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
        if editingStyle == .delete {
            let place = sections[indexPath.section].items[indexPath.row]
            favorites = SearchTableViewManager.shared.deleteFavorite(favorite: place, allFavorites: favorites)
            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:
            isNetworkDown = false
            sections = createSections()
            searchBar.isUserInteractionEnabled = true
