title: reloading table view when search bar is empty
body: <p>I am new in swift.I have implement the search operation for json show in table view about description field .</p>
  
  <pre><code>func updateSearchResults(for searchController: UISearchController) {
          // If we haven't typed anything into the search bar then do not filter the results
  
          if searchController.searchBar.text! == "" {
              filteredsneakernews = [classObject.descriptionn]
              self.results = self.placeHolderArray
              self.DiscoveryNewsTableView.reloadData()
  
          } else {
              // Filter the results
              //filteredsneakernews = [classObject.descriptionn].filter { $0.description.lowercased().contains(searchController.searchBar.text!.lowercased()) }
              results = results.filter {
                  $0.description.lowercased().contains(searchController.searchBar.text!.lowercased()) }
             // self.results = self.placeHolderArray
  
                self.DiscoveryNewsTableView.reloadData()
  
          }
         // self.DiscoveryNewsTableView.reloadData()
      }
  </code></pre>
  
  <p>Here is code for table view</p>
  
  <pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
  
          let cell = tableView.dequeueReusableCell(withIdentifier: "discoveryNewscell") as! DiscoveryNewsTableViewCell
  
  
         classObject.getDataForTableView(results: results, index: indexPath.row)
          //let image_url = filteredsneakernews[indexPath.row].image
         // cell.sneakerImageView.image=filteredsneakernews[indexPath.row].image
            self.placeHolderArray = self.results
          cell.newsTitle.text = classObject.descriptionn
  
          let imageURLPathString = newsurl + classObject.image
  
          let url1 = URL(string: imageURLPathString)
          print("xyz", url1)
          let data = try? Data(contentsOf: url1!)
  
          if let imageData = data {
              let image = UIImage(data: imageData)
              cell.sneakerImageView.image = image
          }
  
          return cell
  
  
      }
  </code></pre>
  
  <p>here is the class that i have made for getting data from json</p>
  
  <pre><code>class getData: NSObject {
  
      var descriptionn : String = ""
      var image : String = ""
  
  //    static let shared = getData()
  
      func getDataForTableView(results: [[String:String]], index : Int){
  
          var productArray = [String:String]()
          productArray = results[index]
  
              descriptionn = productArray["description"]!
              image = productArray["images"]!
  
      }
  }
  </code></pre>
  
  <p>The search bar searching the result. when i finish the search <strong>when search bar is empty i want table view should reload the data .it should show the all record in table view when search bar is empty .but it is not reloading table view when search bar is empty</strong> .you can download the code from this link. <a href="https://drive.google.com/file/d/1G3QUYLgLDwIjNKb-HB-zO98l14HrcRVe/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/1G3QUYLgLDwIjNKb-HB-zO98l14HrcRVe/view?usp=sharing</a></p>