title: How to turn the content of a text field into a variable in Xcode 11 (swift)?
body: <p>As you can see from. the title, i am trying to turn the content of a text field into a variable. I have used this code:</p>
  
  <pre><code>@IBOutlet weak var TextField: UITextField!
  let variable = TextField.text
  </code></pre>
  
  <p>UPDATE: I created a new project with new code, which I have inserted above. The only errors I got was this: Cannot use instance member 'TextField' within property initializer; property initializers run before 'self' is available.</p>