iOS 26 UITabBar Layout Glitch: Custom Appearance vs. Liquid Glass Effects during Rotation

Hello,

I am encountering a UI layout issue on iOS 26 where UITabBar items become squashed or overlapping during device rotation (from Portrait to Landscape). This glitch occurs specifically when a custom UITabBarAppearance is applied.


1. "Liquid Glass" and UITabBar Customization

According to TN3106, Apple states:

"Starting in iOS 26, reduce your use of custom backgrounds in navigation elements and controls. While the techniques in this document remain valid for iOS 18 and earlier, prefer to remove custom effects and let the system determine the navigation bar background appearance. Any custom backgrounds and appearances you use in the navigation bar might overlay or interfere with Liquid Glass or other effects that the system provides, such as the scroll edge effect."

  • Does this guidance also apply to UITabBar?
  • Specifically, could setting a custom background color via UITabBarAppearance interfere with internal layout constraints required for the Liquid Glass effect to adapt correctly during orientation changes?

It appears that the internal UIStackView may fail to recalculate width in time when these system effects are active.


2. Validation of the Layout Workaround

To maintain our app's visual identity while resolving this squashing issue, I implemented the following fix within the transition coordinator of my UITabBarController:

Code Implementation (Objective-C)

[coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
    // Forcing a layout refresh to synchronize with the rotation animation
    [weakSelf.tabBar invalidateIntrinsicContentSize];
    [weakSelf.tabBar setNeedsLayout];
    [weakSelf.tabBar layoutIfNeeded];
} completion:nil];
  • Is manually invalidating the intrinsic content size an acceptable practice for iOS 26?
  • Or is there a more "system-native" approach to ensure UITabBar layout remains stable and compatible with Liquid Glass, especially when custom appearances are necessary?
Answered by DTS Engineer in 884583022
Does this guidance also apply to UITabBar?

Yes, TN3106 applies broadly to navigation elements including UITabBar.

Custom backgrounds, colors and appearances can interfere with how the system manages Liquid Glass.

People use Apple products in all sorts of ways, to avoid any unexpected results, it's best to stick to recommended best practices. Consider how the system handles accessibility automatically. There's a chance going against a recommendation can make some content harder to see for some of your users.

  • could setting a custom background color via UITabBarAppearance interfere with internal layout constraints required for the Liquid Glass effect to adapt correctly during orientation changes?

That sounds odd to me. If it's behaving differently depending on orientation. I'd be interested in taking a look and sharing that report with the relevant engineering team.

File a bug report here: https://developer.apple.com/feedback-assistant/

Attach a minimal sample project that builds and runs, a screen recording if possible, and include any affected platforms and versions.

Also, it'd be sweet if you provided your workaround to us as well, include that in the report.

Thank you!

 Travis

Does this guidance also apply to UITabBar?

Yes, TN3106 applies broadly to navigation elements including UITabBar.

Custom backgrounds, colors and appearances can interfere with how the system manages Liquid Glass.

People use Apple products in all sorts of ways, to avoid any unexpected results, it's best to stick to recommended best practices. Consider how the system handles accessibility automatically. There's a chance going against a recommendation can make some content harder to see for some of your users.

  • could setting a custom background color via UITabBarAppearance interfere with internal layout constraints required for the Liquid Glass effect to adapt correctly during orientation changes?

That sounds odd to me. If it's behaving differently depending on orientation. I'd be interested in taking a look and sharing that report with the relevant engineering team.

File a bug report here: https://developer.apple.com/feedback-assistant/

Attach a minimal sample project that builds and runs, a screen recording if possible, and include any affected platforms and versions.

Also, it'd be sweet if you provided your workaround to us as well, include that in the report.

Thank you!

 Travis

iOS 26 UITabBar Layout Glitch: Custom Appearance vs. Liquid Glass Effects during Rotation
 
 
Q