title: How to tell Smart Invert in iOS 11 not to invert my app colors and detect if it is enabled?
body: <p>iOS 11 has a new feature called "Smart Invert Colors", and I want to take advantage of that in my app. I already have my own dark mode implemented in my app, so I'll do the "color inversion" process myself when Smart Invert is enabled. What I want to know is:</p>
  
  <ul>
  <li>How do I tell iOS 11 that the app has a dark interface and don't invert colours, similar to the iOS Clock app in iOS 10+?</li>
  <li>How do I detect which kind of Invert Colors, specifically "Smart Invert" or "Classic Invert", is enabled?</li>
  </ul>
  
  <p>I've searched everywhere at Google, StackOverflow, and Apple Developer Website for some time now and still couldn't find the answer.</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Thanks to <a href="https://stackoverflow.com/a/44549383/6483149">@Toma's answer</a>, I successfully managed to prevent iOS 11 from inverting views in my app. Now I have another problem...</p>
  
  <p>For the detection part, it appears that <code>UIAccessibility.isInvertColorsEnabled</code> (Swift 4.2) will only return <code>true</code> if Smart Invert is on (iOS 11). At least it's enough for me, for now. I’m now wondering how to find out when Classic Invert is on. Post an updated answer below if you know how to do so! Thanks!</p>