Skip to content

fix(ios): preserve Liquid Glass on iOS 26 by skipping custom UITabBarAppearance#509

Closed
deepak0x wants to merge 4 commits into
callstack:mainfrom
deepak0x:fix/ios26-liquid-glass-appearance
Closed

fix(ios): preserve Liquid Glass on iOS 26 by skipping custom UITabBarAppearance#509
deepak0x wants to merge 4 commits into
callstack:mainfrom
deepak0x:fix/ios26-liquid-glass-appearance

Conversation

@deepak0x
Copy link
Copy Markdown

@deepak0x deepak0x commented Mar 30, 2026

Problem

On iOS 26, the system provides a Liquid Glass material for UITabBar automatically. However, updateTabBarAppearance() in TabViewImpl.swift calls configureStandardAppearance(), which creates a custom UITabBarAppearance with explicit background and item styling. Apple's WWDC25 session 284 ("Build a UIKit app with the new design") says:

"Remove any background customization from your navigation and toolbars. Using UIBarAppearance or backgroundColor interferes with the glass appearance."

So any app using react-native-bottom-tabs on iOS 26 gets an opaque tab bar instead of Liquid Glass, even with UIDesignRequiresCompatibility = false in Info.plist.

Fix

Add an early return in updateTabBarAppearance() on iOS 26+ when:

  • No explicit barTintColor is set (the app wants the system default)
  • scrollEdgeAppearance is 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 via tabBar.unselectedItemTintColor for apps that set tabBarInactiveTintColor.

If the app sets a custom barTintColor or 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

…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
@deepak0x
Copy link
Copy Markdown
Author

hey @maintainers pls check this pr
Thanks ;)

@thiagobrez
Copy link
Copy Markdown
Collaborator

Hey @deepak0x , thanks for the PR! Would you mind sharing some screenshots and relevant snippets / prop configuration to achieve them 🙏🏻

Thank you

@deepak0x
Copy link
Copy Markdown
Author

deepak0x commented May 3, 2026

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 barTintColor, no opaque request — iOS renders its native Liquid Glass material.

<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 barTintColor keeps the original configureStandardAppearance() code path so the custom color is honored.

<TabView
  navigationState={{ index, routes }}
  onIndexChange={setIndex}
  renderScene={renderScene}
  barTintColor="#FFFFFF"
/>

3. Explicit opaque request (existing path, unchanged)

Setting scrollEdgeAppearance="opaque" also runs the original path, so apps that intentionally want an opaque bar on iOS 26 still get one.

<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 #available(iOS 26.0, *).

Screenshots below
WhatsApp Image 2026-05-04 at 5 16 55 AM

before this fix it was a opaque tab bar i.e. configuration two...!

@thiagobrez
Copy link
Copy Markdown
Collaborator

@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 😆

@thiagobrez
Copy link
Copy Markdown
Collaborator

@deepak0x I don't seem to be able to reproduce on iOS 26.4 🤔 which version are you using?

@deepak0x
Copy link
Copy Markdown
Author

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 main without this PR's change — and I can no longer reproduce it there either. The tab bar renders the proper Liquid Glass material and the inactive tint is respected. That lines up with your 26.4 result, so it looks like the behaviour changed on Apple's side somewhere after 26.0.

(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:

  • close this PR if you consider it obsolete for current iOS versions, or
  • keep it as a safeguard for 26.0 and any later versions where it resurfaces.

Let me know what you'd like — and apologies again for the delay.

@thiagobrez
Copy link
Copy Markdown
Collaborator

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!

@thiagobrez thiagobrez closed this May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants