If you try to change the bar item text color programmatically like in iOS 14, it doesn't work in iOS 15.
For example:
// https://stackoverflow.com/questions/2576592/changing-font-size-of-tabbaritem/
UITabBarItem.appearance().setTitleTextAttributes(
[NSAttributedString.Key.foregroundColor: UIColor.red],
for: .normal)
This correctly changes the color when the tab bar is on top of a scroll view.
However, when the tab bar background becomes clear, all tab bar item text is red and not just the text for the currently selected tab.
Is this a bug in iOS 15? Or is this code wrong for iOS 15?