5 Replies
      Latest reply on Feb 14, 2020 11:11 PM by Claude31
      esuark Level 1 Level 1 (0 points)

        I am currently working on a project which uses 3 UIImages and UITapGestureRecognizers, one for each image. I wanted to set up all three gesture recognizers to a single @IBAction, so when one image gets tapped, only that image is hidden. This is basically what I have:

        @IBAction func handleTap(_ sender: UITapGestureRecognizer) {
                sender.view?.isHidden=true
            }

        None of the images hide after I tap them, and I wasn't seeing anything online on how to fix it.

        Any help would be greatly appreciated!