title: How could I enable / disable keyboard Return Key manually in Swift?
body: <blockquote>
    <p>This question is not duplicated from these:</p>
    
    <ul>
    <li><p><a href="https://stackoverflow.com/questions/788323/disable-enable-return-key-in-uitextfield">How to disable/enable the return key in a UITextField?</a></p></li>
    <li><p><a href="https://stackoverflow.com/questions/32226613/how-to-enable-or-disable-the-keyboard-return-key">How to enable or disable the keyboard return key</a></p></li>
    <li><p><a href="https://stackoverflow.com/questions/25728778/enable-and-disable-keyboard-return-key-on-demand-in-ios">Enable and Disable Keyboard return key on demand in iOS</a></p></li>
    </ul>
  </blockquote>
  
  <p>I have two <code>TextFields</code>.</p>
  
  <pre><code>@IBOutlet weak var textField1: UITextField!
  @IBOutlet weak var textField2: UITextField!
  </code></pre>
  
  <ul>
  <li><p><code>textField1</code> has the <strong>Next</strong> button like the Return Key;</p></li>
  <li><p><code>textField2</code> has the <strong>Go</strong> button like the Return Key;</p></li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/BsIZ6.png" rel="nofollow noreferrer">textField1</a></p>
  
  <p><a href="https://i.stack.imgur.com/eI8RP.png" rel="nofollow noreferrer">textField2</a></p>
  
  <p>I would like to enable the <strong>Go</strong> button of the second TextField just if both TextFields are not empty.</p>
  
  <p>I tried to use <code>someTextField.enablesReturnKeyAutomatically</code> with <code>TextFieldDelegate</code>, but did not work.</p>
  
  <p>Thank you for help.</p>