swift didSelectRowAt update object code example
Example: did select row at
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let selectedRow = toDo[indexPath.row]
performSegue(withIdentifier: "segueTwo", sender: selectedRow)
}