title: Update Rows after .Delete in TableView
body: <p>Good day!</p>
  
  <p>I have a TableViewController with EditingStyle: </p>
  
  <pre><code>override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
  
      if editingStyle == .delete {
          machine.formulas.remove(at: indexPath.row)
          machine.saveFormulas()
          tableView.deleteRows(at: [indexPath], with: .fade)
          tableView.reloadData()
  
      } else if editingStyle == .insert {
          // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
      }
  }
  </code></pre>
  
  <p>Each cell has a label with row number. If i .reloadData() as in the code above it breaks the .deleteRows() animation. I tried different variations, with beginUpdates() and .reloadRows(), nothing gave the required result. I think there is a simple solution for that, but I can't figure it out.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Edited code so the item is removed from array at first then from tableView. </p>
  
  <p><strong>EXAMPLE:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/agVFw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/agVFw.png" alt="enter image description here"></a></p>
  
  <p>If you delete row #5, how do you .reloadData() so everything is in order. I mean there won't be 1-2-3-4-6-7-8-9-10. And how do you reload it without breaking .Delete animation?</p>