I am following a tutorial online regarding a TableView Cell swipe action.
override func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? {
let like = UIContextualAction(style: .normal, title: "Like") { (_, _, isComplete) in
self.favStatusCollection[indexPath.row] = !self.favStatusCollection[indexPath.row]
// Call completion handler to dismiss the action button
isComplete(true)
}
However, if I call isComplete(false) instead of isComplete(true). It makes no difference in action in the running test.