func viewTapped (_ sender: UITapGestureRecognizer) { guard let touchedView = sender.view else { return } let point = sender.location(in: touchedView) let convertedPoint = targetView.convert(point, from: touchedView) print(targetView.layer.contains(convertedPoint)) }
|