Colors are not applied to navigation bar in PUPickerRemoteViewController via appearance API

Originator:ievgen.leichenko
Number:rdar://FB9997894 Date Originated:2.06.2023
Status:Open Resolved:NO
Product:iOS Product Version:16.4
Classification:UI Reproducible:YES
 
When trying to modify the looks of the navigation bar in the app via appearance API, some changes are not applied to the navigation bar contained in the instances of PUPickerRemoteViewController and PHPickerViewController.

The example of the code:

[[UINavigationBar appearance] setTranslucent:NO];
    [[UINavigationBar appearance] setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
    [[UINavigationBar appearance] setShadowImage:nil];
    [[UINavigationBar appearance] setBarTintColor:[UIColor redColor]];
    [[UINavigationBar appearance] setTintColor:[UIColor greenColor]];
    [[UINavigationBar appearance] setBackgroundColor:[UIColor redColor]];

The tintColor is correctlyApplied, but barTintColor and backgroundColor are not, as well as translucency. The navigation bar remains translucent and the colors are very much dimmed.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!