title: Disable keyboard automatically after tap on another UITextField
body: <p>Let's say I have 2 textfield in my apps. The first Textfield is to input email ( keyboard show up ) and the second Textfield is for pin ( no need to show keyboard whatsoever ). </p>
  
  <p>When I tap on the first textfield the keyboard showed up, and next I press on the second textfield ( this will pass to another UI &amp; Controller ) to input PIN. So it's on different page, and I use Protocol to pass the value between controller. </p>
  
  <p>I've already implement self.view.endEditing(true) and this work fine if I pressed on anywhere in the UI to dismiss the keyboard. </p>
  
  <p>The problem is, when I tap on the first textfield &amp; tap on the second immediately without tap everywhere on the UI. The keyboard from first textfield doesn't dismiss automatically and stuck up in the other controller &amp; page. </p>
  
  <p>So how do I disable the keyboard of the second textview. Because I don't need it eventually. </p>
  
  <p>Few Code here.</p>
  
  <p>This code is when I edit the second textfield automatically target to another controller. </p>
  
  <pre><code>//Implement UITextFieldDelegate
  extension LoginViewController: UITextFieldDelegate{
  
      func textFieldDidBeginEditing(_ textField: UITextField) {
          let secondViewController = self.storyboard?.instantiateViewController(withIdentifier: "EnterMpinViewController") as! EnterMpinViewController
          secondViewController.pinProtocol = self
          textField.resignFirstResponder()
          self.navigationController?.pushViewController(secondViewController, animated: true)
  
  }
  </code></pre>