fix(ios): preserve Liquid Glass on iOS 26 by skipping custom UITabBarAppearance#509
fix(ios): preserve Liquid Glass on iOS 26 by skipping custom UITabBarAppearance#509deepak0x wants to merge 2 commits intocallstack:mainfrom
Conversation
…Appearance On iOS 26, creating a custom UITabBarAppearance replaces the system-provided Liquid Glass material. This adds an early return in updateTabBarAppearance() on iOS 26+ when no explicit barTintColor or opaque scrollEdgeAppearance is set, so the system renders Liquid Glass instead. The inactive tint color is still applied via tabBar.unselectedItemTintColor for apps that set tabBarInactiveTintColor. Fixes callstack#439
|
hey @maintainers pls check this pr |
|
Hey @deepak0x , thanks for the PR! Would you mind sharing some screenshots and relevant snippets / prop configuration to achieve them 🙏🏻 Thank you |
|
Hey @thiagobrez, thanks for the quick look! Here are the prop configurations corresponding to the three branches the fix touches. Screenshots attached below. 1. Liquid Glass (new behavior on iOS 26)No <TabView
navigationState={{ index, routes }}
onIndexChange={setIndex}
renderScene={renderScene}
// no barTintColor
// no scrollEdgeAppearance="opaque"
tabBarInactiveTintColor="#8E8E93" // still applied via unselectedItemTintColor
/>2. Custom opaque bar (existing path, unchanged)Setting <TabView
navigationState={{ index, routes }}
onIndexChange={setIndex}
renderScene={renderScene}
barTintColor="#FFFFFF"
/>3. Explicit opaque request (existing path, unchanged)Setting <TabView
navigationState={{ index, routes }}
onIndexChange={setIndex}
renderScene={renderScene}
scrollEdgeAppearance="opaque"
/>On iOS 25 and below, all three configurations behave exactly as before — the early return is guarded by before this fix it was a opaque tab bar i.e. configuration two...! |
|
@deepak0x Appreciate it! I'll try to find the time to look into this again this week. FYI: I think you forgot to attach the screenshots 😆 |

Problem
On iOS 26, the system provides a Liquid Glass material for
UITabBarautomatically. However,updateTabBarAppearance()inTabViewImpl.swiftcallsconfigureStandardAppearance(), which creates a customUITabBarAppearancewith explicit background and item styling. Apple's WWDC25 session 284 ("Build a UIKit app with the new design") says:So any app using
react-native-bottom-tabson iOS 26 gets an opaque tab bar instead of Liquid Glass, even withUIDesignRequiresCompatibility = falsein Info.plist.Fix
Add an early return in
updateTabBarAppearance()on iOS 26+ when:barTintColoris set (the app wants the system default)scrollEdgeAppearanceis not"opaque"(the app is not requesting an opaque bar)In this case, we skip
configureStandardAppearance()and let iOS render Liquid Glass. The inactive tint color is still applied viatabBar.unselectedItemTintColorfor apps that settabBarInactiveTintColor.If the app sets a custom
barTintColoror requests an opaque appearance, the existing code path runs as before. On iOS 25 and below, the early return is guarded by#available(iOS 26.0, *)so the existing code path is completely unchanged.Testing
Tested with the Rocket.Chat React Native app connected to a live server. Liquid Glass renders on the tab bar after the fix. Without it, the tab bar is opaque.
Related to #439