title: swift 3.0 - UITextFieldDelegate protocol extension not working
body: <p>I try implement <code>UITextFieldDelegate</code> protocol in <code>ViewController</code>. I have started with <a href="https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Lesson3.html#//apple_ref/doc/uid/TP40015214-CH22-SW1" rel="nofollow" title="apple tutorial">apple tutorial</a>. I implemented the same such as it is on tutorial but it doesn't work. (XCODE 8)</p>
  
  <pre><code>class ViewController: UIViewController, UITextFieldDelegate {
  
      // MARK: Properties
  
      @IBOutlet weak var recipeNameField: UITextField!
      @IBOutlet weak var recipeNameLabel: UILabel!
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          recipeNameField.delegate = self
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  
      // MARK: Actions
  
      @IBAction func onSetDefaultRecipeClick(_ sender: UIButton) {
          recipeNameField.text = "Deafult recipe name"
      }
  
      // MARK: UITextFieldDelegate
      func textFieldShouldReturn(_ textField: UITextField) -&gt; Bool {
          textField.resignFirstResponder()
  
          print("return")
          return true
      }
  
  }
  </code></pre>