title: Swift - How to dismiss number keyboard after tapping outside of the textfield
body: <p>How would you dismiss the keyboard from the UITextField when tapping outside of the keyboard. I have tried <code>resignFirstResponder()</code> and it only exits after typing one number. I have also tried <code>textField.inputView = UIView.frame(frame: CGRectZero)</code>. I have seen many Obj-C verisons of what I'm asking but I need the Swift equivalent because I have no programming experience in Objective-C</p>
  
  <p>Thank you for your time and patience.</p>