Image Taped call from table view cell

PHOTO EMBED

Fri Apr 22 2022 07:10:23 GMT+0000 (Coordinated Universal Time)

Saved by @hasnat #ios #swift #tap #taped #imagetaped

  @objc func addToCartTaped(tapGesture: UITapGestureRecognizer) {
        let imgView = tapGesture.view as! UIImageView
  
    }

# Paste in cell
cell.addToCartImageView.tag = indexPath.row
            let tapGesture = UITapGestureRecognizer(target: self, action: #selector(addToCartTaped(tapGesture:)))
            cell.addToCartImageView.isUserInteractionEnabled = true
            cell.addToCartImageView.addGestureRecognizer(tapGesture)
content_copyCOPY