I\'m new to IOS programming, I\'m displaying a view when a button is clicked, using the following code inside the button method.
@IBAction func moreButton(_
You can use touchesBegan method for that:
touchesBegan
override func touchesBegan(_ touches: Set, with event: UIEvent?) { self.helpView.isHidden = true }