title: Since Xcode 12 uitextfields of existing project has black background
body: <p>A few days ago I upgraded Xcode 11 to Xcode 12, since than my app doesn't build correctly. One of the problems is that my white uitextfields become black! In the image below it should show 4 uitextfields inside the red rectangle as a stack, but now you see nothing, because they turned black (The are not disappeared)! I haven't changed anything, just upgraded Xcode to release version 12. I tested on iOS 12.x, iOS 13.x and iOS 14, on all versions uitextfields turn black now, just because I use Xcode 12.</p>
  <p><a href="https://i.stack.imgur.com/3Pu92.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Pu92.png" alt="enter image description here" /></a></p>
  <p>All my uitextfields turned black. My app doesn't support dark mode, but I had no problems in Xcode 11.4.</p>
  <p>I also tried to fix the problem with the following code:</p>
  <pre><code>if (@available(iOS 13.0, *)) {
      if ([self.window respondsToSelector:NSSelectorFromString(@&quot;overrideUserInterfaceStyle&quot;)]) {
          [self.window setValue:@(UIUserInterfaceStyleLight) forKey:@&quot;overrideUserInterfaceStyle&quot;];
      }
  }
  </code></pre>
  <p>But with no success :(</p>
  <p>The only solution is to manually set all the uitextfields' background to white, but that's frustrating. Do you know what causes the uitextfields to be black instead of default white and how I can fix it from central place?</p>