title: How to validate TextFields after pressing key on Keyboard
body: <p>I have 3 textFields<br/></p>
  
  <p>txtField1<br/>
    txtField2<br/>
    txtField3<br/></p>
  
  <p>user need to use Key(Next) on Keyboard to go to next textField</p>
  
  <p>Requirements:<br/></p>
  
  <p>txtField1 will have (Next)-Key on Keyboard<br/>
    txtField2 will have (Next)-key on Keyboard<br/>
    txtField3 will have (go)-Key on the keyboard<br/></p>
  
  <p><strong>Problem:</strong> <br/>
  How to press next-key on Keyboard to go to next txtField and
  do the <strong>validation</strong> on the press (Go) key on the Keyboard and check no txtField should be empty.</p>
  
  <pre><code>My Code :
  
  1. The class conform to UITextFieldDelegate
  
  Class myTestVC : UIViewController, UITextFieldDelegate {}
  
  override fun viewDidLoad() {
  
    txtField1.delegate = self
    txtField1.tag = 0 
    txtField1.returnKeyType = .next
    txtField1.borderStyle = UITextBorderStyle.none
  
    txtField2.delegate = self
    txtField2.tag = 1
    txtField2.returnKeyType = .next
    txtField2.borderStyle = UITextBorderStyle.none
  
    txtField3.delegate = self
    txtField3.tag = 2
    txtField3.returnKeyType = .next
    txtField3.borderStyle = UITextBorderStyle.none
  
    //- to show the Keyboard 
    txtField1.becomeFirstResponder()
  
  
  }
  
  2)  How to implement this for the above scenario?
  
  func textFieldShouldReturn( _ textField: UITextField) -&gt; Bool {
  
  
  }
  </code></pre>
  
  <p>Please help.</p>
  
  <p>Thanks</p>