Hi Albert,
thanks for the response. The Avenir Next font is included in iOS since forever (iOS 6?), so no need to declare it using the UIAppFonts key.
I tried configureWithOpaqueBackground, it didn't make a difference.
I've file FB21291879 and have attached a small demo project and screenshots there. It's pretty simple: use a default UITabBar and in viewDidLoad, change the appearance:
self.tabBar.standardAppearance.compactInlineLayoutAppearance.normal.titleTextAttributes = [
.font: UIFont(name: "AvenirNext-DemiBold", size: 28.0)!
]
Run it on iOS 26.0. or 26.1 and the tab bar renders with a large font. Run it on iOS 26.2 and the font is a small San Francisco.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: