title: How to detect iPod and iPhone device with Swift 3?
body: <p>I would like to detect test device is iPod or iPhone. Now, I'm using this code. <br></p>
  
  <pre><code>if (UIDevice.current.userInterfaceIdiom == UIUserInterfaceIdiom.pad)
      {    debugPrint("ipad show")
  
      }
      else
      {
          debugPrint("ipod show")
      }
  </code></pre>
  
  <p>When I test with iPhone 7, it shows iPod. So, I would like to detect whether it is  iPod or iPhone. <br>
  I don't want to install any additional pod to achieve this. <br> I would like to implement this with simply and short code.<br>
  Can anyone help me please? </p>