title: swift 3 check if iphone 6/7 and 6/7plus display is in standard or zoomed mode
body: <p>I wonder how I can check if the user has the display set to zoomed mode.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>public var isZoomed: Bool {
      return UIScreen.main().scale &lt; UIScreen.main().nativeScale
  }
  </code></pre>
  
  <p>And also:</p>
  
  <pre><code>#define IS_OS_8_OR_LATER    ([[[UIDevice currentDevice] systemVersion] floatValue] &gt;= 8.0)
  #define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
  #define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
  #define IS_IPHONE_5 (IS_IPHONE &amp;&amp; ([[UIScreen mainScreen] bounds].size.height == 568.0) &amp;&amp; ((IS_OS_8_OR_LATER &amp;&amp; [UIScreen mainScreen].nativeScale == [UIScreen mainScreen].scale) || !IS_OS_8_OR_LATER))
  #define IS_STANDARD_IPHONE_6 (IS_IPHONE &amp;&amp; [[UIScreen mainScreen] bounds].size.height == 667.0  &amp;&amp; IS_OS_8_OR_LATER &amp;&amp; [UIScreen mainScreen].nativeScale == [UIScreen mainScreen].scale)
  #define IS_ZOOMED_IPHONE_6 (IS_IPHONE &amp;&amp; [[UIScreen mainScreen] bounds].size.height == 568.0 &amp;&amp; IS_OS_8_OR_LATER &amp;&amp; [UIScreen mainScreen].nativeScale &gt; [UIScreen mainScreen].scale)
  #define IS_STANDARD_IPHONE_6_PLUS (IS_IPHONE &amp;&amp; [[UIScreen mainScreen] bounds].size.height == 736.0)
  #define IS_ZOOMED_IPHONE_6_PLUS (IS_IPHONE &amp;&amp; [[UIScreen mainScreen] bounds].size.height == 667.0 &amp;&amp; IS_OS_8_OR_LATER &amp;&amp; [UIScreen mainScreen].nativeScale &lt; [UIScreen mainScreen].scale)
  </code></pre>
  
  <p>But I none of them works.</p>
  
  <p>So is there a way to detect if the device is zoomed or even force it to not be zoomed when the app is running?</p>