title: How to change UITextField keyboard type to email in Swift
body: <p>In objective-c I can just say the following. </p>
  
  <pre><code>[self.promoTextField setKeyboardType:UIKeyboardTypeEmailAddress];
  </code></pre>
  
  <p>I tried googling it but just get ways to do it in objective-c. </p>