Question : swift 5 touchupinsideview
Answered by : nathan-hedgeman
let clickGesture = UITapGestureRecognizer(target: self, action: #selector(self.onUiViewClick))
uiView.addGestureRecognizer(clickGesture) @objc func onUiViewClick(sender : UITapGestureRecognizer) { }
Source : https://stackoverflow.com/questions/10728830/touchupinside-on-uiview-with-children | Last Update : Sat, 25 Sep 21