I have 2 UIImageView and a single tapGestureRecognizer.
override func viewDidLoad() { // Do any additional setup after loading the view. super.viewDidLoad() let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(cameraTapped(tapGestureRecognizer:))) cameraUIImageView.isUserInteractionEnabled = true cameraUIImageView.addGestureRecognizer(tapGestureRecognizer) plus1UIImageView.isUserInteractionEnabled = true plus1UIImageView.addGestureRecognizer(tapGestureRecognizer) // } I can only tap on the second UIImageView, which is plus1UIImageView.
Why?