iOS Swift - User Input and Forms
Why does this Swift code fail to dismiss the keyboard when the user taps outside the UITextField?
override func touchesBegan(_ touches: Set, with event: UIEvent?) { view.endEditing(false) }
