title: Detect current device with UI_USER_INTERFACE_IDIOM() in Swift
body: <p>What is the equivalent of <code>UI_USER_INTERFACE_IDIOM()</code> in Swift to detect between iPhone and iPad?</p>
  
  <p>I get an <code>Use of unresolved identifier</code> error when compiling in Swift.</p>