iOS Swift - Lists and Data Display
Given this code snippet inside a UITableViewDelegate method, what happens when the user swipes the cell?
let deleteAction = UIContextualAction(style: .destructive, title: "Delete") { _, _, completionHandler in
print("Deleted")
completionHandler(true)
}
let configuration = UISwipeActionsConfiguration(actions: [deleteAction])
return configuration