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.
All my uitextfields turned black. My app doesn't support dark mode, but I had no problems in Xcode 11.4.
I also tried to fix the problem with the following code:
if (@available(iOS 13.0, *)) {
if ([self.window respondsToSelector:NSSelectorFromString(@"overrideUserInterfaceStyle")]) {
[self.window setValue:@(UIUserInterfaceStyleLight) forKey:@"overrideUserInterfaceStyle"];
}
}
But with no success :(
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?

Try to present your first controller and override window user interface in scene delegate like this:
if you don't solve the issue and set manually bg color I suggest to write an extension that set bg to white like this:
how to use:
if you want tf padding add this extension:
after that add this line to myTextField func: