Your Second Swift 4 & iOS 11 App - Part 24: | Ray Wenderlich

Now's the time to add new checklist items! This video will walk you through the process.

This is a companion discussion topic for the original entry at


What is the benefit of using:

let indexPath = IndexPath(row: newRowIndex, section: 0)
let indexPaths = [indexPath]
tableView.insertRows(at: indexPaths, with: .automatic)

instead of:


Thanks in advance

Best regard

Thomas Kirk

insertRows() updates only the new row by adding it to the existing table view. reloadData() updates the entire table view by rebuilding the whole thing from scratch and the ground up.

I hope this helps. Thank you! :]

This topic was automatically closed after 166 days. New replies are no longer allowed.