title: Declaring variables in swift
body: <p>I am trying to follow a tutorial which says if we don't want to initialise a variable in swift we can do the following;</p>
  
  <pre><code>var year:Integer
  year = 2;
  </code></pre>
  
  <p>However, if I declare the above block of code I get an error </p>
  
  <blockquote>
    <p>"use of undeclared type Integer"</p>
  </blockquote>
  
  <p>If i use the following instead it works;</p>
  
  <pre><code>var year:integer_t
  year = 2;
  </code></pre>
  
  <p>Why do I need to do this yet the tutorial can use the first method?</p>
  
  <p>Thanks</p>
  
  <p>Edit : screen shot from tutorial</p>
  
  <p><img src="https://i.stack.imgur.com/oQBdy.png" alt="enter image description here"></p>