             
             if selectedArray .contains(indexPath){
                 selectedArray.remove(at: selectedArray.index(of: indexPath)!)
+                
             }
 
             

        buttonToChangeView.isHidden = true
        deleteButton.isHidden = false
        
        
        if gesture.state == .ended{
            return

            cell.sampleImage.image = UIImage(named: data[indexPath.item]["Image"]!)
            cell.sampleLabelText.text = data[indexPath.item]["Name"]
            cell.backgroundColor = nil
            if selectedArray .contains(indexPath){
                cell.backgroundColor = .blue
            }


            return cell
            
