Tap Gesture on animating UIView not working
How to detect touches in a view which is moving override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { let pf = layer.presentation()!.frame // note, that is in the space of our superview let p = self.convert(point, to: superview!) if pf.contains(p) { return self } return nil } It’s that easy Related tip … Read more