title: what's the code meaning? UITextFieldDelegate
body: <p>How does this code work -</p>
  
  <pre><code>func textFieldShouldReturn(_ textField: UITextField) -&gt; Bool {
      if textField.resignFirstResponder() {
          textField.text = nil
      }
      return true
  }
  
  func textFieldDidEndEditing(_ textField: UITextField) {
      theTextField.text = textField.text
  }
  </code></pre>
  
  <p>I don't understand it, I know what it does but i need some help to understand what the codes mean. Thank you! :)</p>