If I launch my iOS app in dark mode or launch it in light mode and toggle it to dark mode, the status bar text color is white on the dark background and it looks great. But if I close and reopen the app, the status bar always turns black.
When the app is in light mode the text is black and if I close and reopen the app, the text is still black. So the issue only happens with dark mode.
I made a new project to try and reproduce it but so far it only happens in my app.
I tried circumventing my custom view controllers, navigation controllers, colors and so on in my app but no matter what I do the status bar still changes color when I close and reopen the app in dark mode.
I don't have anything related to status bars in my Info.plist.
I don't see anything that could be modifying the status bar color afaict, esp only for dark mode.
I am not using storyboards, but rather setting UIWindow's rootViewController in my AppDelegate. But I recreated this in a fresh project and did not reproduce the issue.
Using iOS 16.2 (deployment target is iOS 14.3).
Any other things I could check/try?
Thank you