If I was not using LBTAtools -and I wanted to delete the cells that have messages in them I would use:
func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
return true
}
func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
if (editingStyle == .delete) {
// pass the new info back Firebase
}
}
but I cant seem to find the correct UICollectionViewCell functions to make the left delete swipe button appear....it looks like UICollectionViewCell does not have .editingStyle....can you pass in some quick code that shows how we implement the delete of a cell row?