         collectionView.dataSource = self
         let pan = UIPanGestureRecognizer(target: self, action: #selector(handlePan(gestureRecognizer:)))
         pan.delegate = self
-//        let panItem = UIPanGestureRecognizer(target: self, action: #selector(handlePanItem(gestureRecognizer:)))
-//        panItem.delegate = self
-//        collectionView.addGestureRecognizer(panItem)
         collectionView.addGestureRecognizer(pan)
-        
         collectionView.allowsMultipleSelection = true
 
     }

    override func viewDidLoad() {
        super.viewDidLoad()

//        collectionView.setCollectionViewLayout(DGCollectionViewLeftAlignFlowLayout(), animated: false)
        collectionView.register(UINib.init(nibName: mealHeaderViewCellIdentifier, bundle: nil), forCellWithReuseIdentifier: mealHeaderViewCellIdentifier)
        collectionView.register(UINib.init(nibName: mealSectionViewCellIdentifier, bundle: nil), forCellWithReuseIdentifier: mealSectionViewCellIdentifier)
        collectionView.register(UINib.init(nibName: mealTagViewCellIdentifier, bundle: nil), forCellWithReuseIdentifier: mealTagViewCellIdentifier)

                    startX = location.x
                case .changed:
                    offsetX = location.x - startX
                    cell.frame = CGRect(origin: CGPoint(x: offsetX, y: cell.frame.origin.y), size: cellSize)
                case .ended:
                    if offsetX > 200 {
                        ingredientTitles.remove(at: indexPath.row)
                        self.collectionView.deleteItems(at: [indexPath])
                        self.collectionView.reloadData()
                    } else {
                        UIView.animate(withDuration: 0.2, animations: { 
                            cell.frame = CGRect(origin: CGPoint(x: 0, y: cell.frame.origin.y), size: cellSize)
                        })
                    }
                    startX = 0
                    offsetX = 0
