fix(ios): preserve Liquid Glass on iOS 26 by skipping custom UITabBarAppearance#509
Open
deepak0x wants to merge 1 commit intocallstack:mainfrom
Open
fix(ios): preserve Liquid Glass on iOS 26 by skipping custom UITabBarAppearance#509deepak0x wants to merge 1 commit intocallstack:mainfrom
deepak0x wants to merge 1 commit 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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