Hello everyone. Please help me figure it out. My application has a dark theme, everything works as it should on iOS 16 -13, but on devices with version 17, after I change the color, the color of the view changes everywhere, but the color of the upper navigation bar remains in its original state until I collapse the application and expand it. What was added in version 17 that the behavior of overrideUserInterfaceStyle for UIApplication.shared.windows has changed? Who has encountered?
iOS 17 problem overrideUserInterfaceStyle
More precisely, the color of the clock and the network operator with a battery is not applied in the controller until a new controller is opened or the application is minimized
[@Accessibility inspector font](https://developer.apple.com/forums/profile/Accessibility inspector font) We had the same issue, but discovered that when built with the iOS 17 SDK, only views that are part of the view hierarchy and have had a layout pass will have their trait collections properly updated. After updating the tests to 1. Set the overrideUserInterfaceStyle, 2. Add the view to the test hosts view hierarchy and, 3. Calling setNeedsLayout/layoutIfNeeded on the view would the traitCollection be properly updated. This view layout pass requirement is mentioned in a WWDC 23 video.