     override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
         
         return stores.count
+        
     }
     
     override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
         
         guard let cell = tableView.dequeueReusableCell(withIdentifier: "storeCell", for: indexPath) as? StoresTableViewCell else {
-           
+            
             LOG.error("Failed to dequeue StoresTableViewCell")
             return UITableViewCell()
-       
+            
         }
         
         let store = stores[indexPath.row]

        refreshControl?.addTarget(self, action: #selector(self.reloadStoreData), for: .valueChanged)
        
    }

    func reloadStoreData() {
        
        guard let usersLocation = UserLocation.instance.currentCoordinate else { return }
        let usersLatitude = usersLocation.latitude
        let usersLongitude = usersLocation.longitude
        
        SearchStores.searchForStoresLocations(near: usersLocation, with: distanceFilter) { stores in
            self.stores = stores
            
            self.main.addOperation {
                
                self.tableView.reloadData()
                self.refreshControl?.endRefreshing()
                
            }
            
        }
    
    }

}


import SWRevealController
import UIKit

class StoresTableViewController: UITableViewController, SideMenuFilterDelegate {
    
    @IBOutlet weak var filterButton: UIBarButtonItem!
    @IBOutlet weak var mapButton: UIBarButtonItem!
    
    var stores: [StoresInfo] = []
    var distanceFilter = 0.0
