Snippets Collections
  @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.cellButton.tag = indexPath.row
            cell.cellButton.addTarget(self, action: #selector(yourFunc(sender:)), for: UIControl.Event.touchUpInside)
@objc func yourFunc(sender: UIButton){
    let buttonTag = sender.tag

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension