     
 }
 
-class ImageViewCardCell:UICollectionViewCell{
- 
+class ImageViewCardCell:UICollectionViewCell,UIGestureRecognizerDelegate{
+    private var tap: UITapGestureRecognizer!
     let cardView:UIView = {
        let cardView = UIView()
         cardView.backgroundColor = UIColor.white
         cardView.layer.cornerRadius = 10
         cardView.layer.masksToBounds = true
+        cardView.isUserInteractionEnabled = true
         return cardView
     }()
     

        
    }
    
    func configure(index:Int){
        if(index>0){
            imageView.image = UIImage(named: "CardImage4")

    
    func setupSubViews() ->Void{
        self.contentView.addSubview(cardView)
        tap = UITapGestureRecognizer(target: self, action: #selector(self.cardTapped))
        cardView.addGestureRecognizer(tap)
        tap.delegate = self
        tap.cancelsTouchesInView = false
        cardView.snp.makeConstraints { (make) in
            make.leading.trailing.equalTo(self.contentView)
            make.top.equalTo(self.contentView).offset(20)
