UITabBar ignores font in iOS 26.2

Our app has a UITabBar and the compactInlineLayoutAppearance has a custom font set. This worked fine on iOS 26.0 and 26.1.

[self.bottomTabBar.standardAppearance.compactInlineLayoutAppearance.normal setTitleTextAttributes: @{
    NSFontAttributeName:[UIFont fontWithName:@"AvenirNext-DemiBold" size:18.0]
}];

But on iOS 26.2, the system ignores this custom font. How can I apply a custom font to a UITabBar on iOS 26.2?

Thanks for your post.

Do you have a focused sample project where we can see the fonts in the bundle but the iOS 26.2 is ignoring but working on previous versions?

To ensure your custom font is applied to UITabBar items on iOS 26.2, consider the following steps:

  • Double-Check Font Availability: Ensure that the custom font "AvenirNext-DemiBold" is included in your app's bundle. Check your Info.plist to confirm that the font is properly listed under the UIAppFonts key.
  • Use configureWithOpaqueBackground: Try setting the appearance configuration using configureWithOpaqueBackground, which might provide better consistency across different iOS versions.
  • Debug Using Runtime: Use Xcode's debugger to inspect the titleTextAttributes at runtime on iOS 26.2 to verify if your attributes are being overwritten or ignored.

I would be delighted to assist you if you could provide a focus sample that I can analyze against iOS 26.2.

If you're not familiar with preparing a test project, take a look at Creating a test project.

Albert Pascual
  Worldwide Developer Relations.

UITabBar ignores font in iOS 26.2
 
 
Q