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 4 commits into
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 😆 |
|
@deepak0x I don't seem to be able to reproduce on iOS 26.4 🤔 which version are you using? |
|
Hey @thiagobrez — sorry for the long silence, and thanks for taking the time to test this. To answer your question: I originally reproduced this on iOS 26.0, back when I opened the PR in March. I went back and re-tested on iOS 26.1 (iPhone 17 Pro simulator, Xcode 26.1.1) — building the example app from (That's also why I didn't re-attach screenshots — on 26.1 the unpatched build already looks correct, so there's no "before" state left to capture.) I don't want to overclaim that the issue is fully gone, though — #439 still has reports against 26.2, and I've only checked the 26.1 simulator, not a physical device or every point release. So I'm happy to go whichever way you prefer:
Let me know what you'd like — and apologies again for the delay. |
|
No worries @deepak0x, we all have stuff to do :) Thanks for the double check. I'm investigating #439 as well, and unfortunately there are many undocumented changes on Apple's side to the tab bar and tint behavior between 26.0 - 26.5, which makes it harder to debug. Since this one seems to be resolved, I will close this for simplicity. I will continue on the other issue. Thank you! |

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