i added the gesture recognizer to my view but it isnt being called i even checked by adding a print statement in the function. can anyone help , i even tried adding the delegate and all that but still not being called
```
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
let fullScreen = UIView()
fullScreen.isUserInteractionEnabled = true
fullScreen.backgroundColor = .red
let tapGesture = UIGestureRecognizer(target: self, action: #selector(handleTap(gesture:)))
tapGesture.delegate = self
fullScreen.addGestureRecognizer(tapGesture)
view.addSubview(fullScreen)
guard let cell = collectionView.cellForItem(at: indexPath) else {return}
guard let startingFrame = cell.superview?.convert(cell.frame, to: nil) else{return}
fullScreen.frame = startingFrame
UIView.animate(withDuration: 0.7, delay: 0, usingSpringWithDamping: 0.7, initialSpringVelocity: 0.7, options: .curveEaseOut, animations: {
fullScreen.frame = self.view.frame
}) { (done) in
}
}
@objc func handleTap(gesture: UITapGestureRecognizer){
print("tapped")
gesture.view?.removeFromSuperview()
}
```