iOS15 Setting Title Color on transparentBackground navigationBar Doesn't Work?

hey guys, why these codes below doesn't work on iOS15?

UINavigationBarAppearance *navBarApp =[UINavigationBarAppearance new];
[navBarApp configureWithTransparentBackground];

NSDictionary *dic = @{NSForegroundColorAttributeName : [UIColor redColor], NSFontAttributeName : [UIFont systemFontOfSize:20]};

navBarApp.titleTextAttributes = dic;

self.navigationController.navigationBar.standardAppearance = navBarApp;

how can i set the text color on the transparent navigationbar?

The text color is still black on that navigation bar : (

never mind, i mean i reset the text color with reinit UINavigationBarAppearance... : P

So, does it work now ? If so, don't forget to close the thread. Good continuation.

Can you share your solution? Writing the solution as Your Answer and marking it as SOLUTION would give benefits to readers.

iOS15 Setting Title Color on transparentBackground navigationBar Doesn't Work?
 
 
Q