I have two view controllers - the first has a UIStatusBarStyleDefault
, the second has a UIStatusBarStyleLightContent
.
VC1 is presenting VC2 as a modal form sheet. So when presenting in regular trait collection, VC2 is presented as UIModalPresentationFormSheet
and VC1 sets the status bar to Default.
But in compact trait collection, VC2 is fullscreen and sets the status bar style to Light Content.
The problem is when switching between regular to compact (full screen to form sheet) the status bar is not updating.
Trying - [self setNeedsStatusBarAppearanceUpdate]; after trait collection change did not solve the issue.
Any help will be much appreciated!