So I have a UITextView that I\'m using to allow the user to submit some text.
My problem is, I can\'t seem to figure out how to allow the user to \'Cancel\' by tappi
Here is the swift 3 code
override func touchesBegan(_ touches: Set, with event: UIEvent?) { if let touch = touches.first { if textField.isFirstResponder && touch.view != textField { textField.resignFirstResponder() } } super.touchesBegan(touches, with: event) }