title: Another solution instead of tableView.reloadData()
body: <p>I am calling batch updates(begin/end updates) on a tableView using this code:</p>
  
  <pre><code>  let oldImageSet = Set(oldImageArray)
    let newImageSet = Set(self.images)
    let missingImages = newImageSet.subtracting(oldImageSet)
  
    let missingImageIndexPaths = Array(missingImages).map{NSIndexPath(row: self.images.index(of: $0)!, section: 0)}
    //Array(missingImages).map{NSIndexPath(forRow:newImageUUIDArray.indexOf($0)!,inSection:1)}
  
    let removedImages = oldImageSet.subtracting(newImageSet)
    let removedImageIndexPaths = Array(removedImages).map{NSIndexPath(row:oldImageArray.index(of: $0)!,section:0)}
  
    self.tableView.beginUpdates()
    if missingImageIndexPaths.isEmpty == false {
          self.tableView.insertRows(at: missingImageIndexPaths as [IndexPath],with:.top)
    }
  
    if removedImageIndexPaths.isEmpty == false {
          self.tableView.deleteRows(at: removedImageIndexPaths as [IndexPath],with:.none)
    }
    self.tableView.endUpdates()
  </code></pre>
  
  <p>Which is working alright.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>This is my tableView section counts and how I have it set up:</p>
  
  <pre><code>func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -&gt; CGFloat {
      return 55
  }
  
  func numberOfSections(in tableView: UITableView) -&gt; Int {
  
      return posts.count
  }
  
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return 1
  }
  </code></pre>
  
  <p>But now I have another tableView I would like to be able to call this on, But it has 'Sections' so When I use this I get a crash...?</p>
  
  <p>Does anyone know how to use this code on a tableView with sections?</p>
  
  <p>Many thanks in advance!</p>