Xcode SwiftUI app has black background and inverted text

I am trying to build an app with a normal white background, black text, etc. I am running it on a simulator, and everything is fine. I tried running it on my device, it worked for about a second and then crashed. I ran it again, and ever since it caused the background of the app to be black, the text to be white, and ultimately not at all what I coded. I don't understand what is going on as I updated Xcode, updated my IOS version, restarted my phone, and nothing works.

Also, I tried running some apps I created earlier and they are now following the same issue I am experiencing with this. The screen is black, the text is different colors. Super frustrating

So are all your apps in night mode, but not others? If everything is in night mode, perhaps you accidentally switched night mode on?

Xcode SwiftUI app has black background and inverted text
 
 
Q