title: Cannot override prefersHomeIndicatorAutoHidden() method
body: <p>I use this line of code in an app with XCode 10 in order to dim the home indicator on iPhone X and associated edgeless apple devices.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    override func prefersHomeIndicatorAutoHidden() -&gt; Bool {
          return true
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now the funny thing is, I have an <strong>exact</strong> copy of this app and on one copy the code works, whilst on the over the code does not compile:</p>
  
  <blockquote>
    <p>Method does not override any method from its superclass</p>
  </blockquote>
  
  <p>Indeed when I start typing "prefers..." , prefersHomeIndicatorAutoHidden appears as a read-only property on the one hand, whilst it does appear as a method on the other hand, and gets the override prefix by default.</p>
  
  <p>Thanks for taking the time,</p>
  
  <p>Best</p>
  
  <p>EDIT WITH SOLUTIONS thanks to <strong>@inokey</strong></p>
  
  <ul>
  <li><p>Solution 1: check deployment (starting i0S 12, <code>prefersHomeIndicatorAutoHidden</code> cannot be overridden as a method)</p></li>
  <li><p>Solution 2 : </p></li>
  </ul>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>override var prefersHomeIndicatorAutoHidden : Bool { return true }</code></pre>
  </div>
  </div>
  </p>