title: Input from UITextField connected from storyboard to Swift view controller file
body: <p>Using Swift, how do I get the input from a <code>UITextField</code>?</p>
  
  <p>In my Main.storyboard, I have chosen a "Text Field" from the premade components and dragged it onto my storyboard.</p>
  
  <p>Now how can I access its value in my ViewController.swift?</p>
  
  <p><strong>What I'm currently doing:</strong></p>
  
  <p>I ctrl+drag the text field into my ViewController.swift file. Then in the popup-box I choose "outlet" and name it "myInput".</p>
  
  <p>Then in another function, I access its value by using <code>self.myInput.text</code>.</p>
  
  <p>Is this the only way to access its input? Is my approach following Swift conventions?</p>