Skip to content

Keep the toast clear of a tab bar that appears while it shows - #1820

Merged
robertying merged 3 commits into
mainfrom
claude/project-thread-rgc7w3
Nov 25, 2026
Merged

robertying merged 3 commits into
mainfrom
claude/project-thread-rgc7w3

Conversation

@robertying

Copy link
Copy Markdown
Owner

Requested by Rui · project thread

On a cold launch, the iOS logging-in toast covered the tab bar. The toast asked UIKit where the tab bar is once, as it mounted. At launch that is before the tab bar can be found, so the answer was "none" and the toast kept the plain bottom margin. Toasts shown later, with the tabs already up, were placed correctly.

The toast HUD's native view (modules/toast) now follows the tab bar itself. While it is in a window, a display link checks TabBarLocator every frame and sends onTabBarFrame whenever the answer changes, starting with the first answer before the HUD's first layout. Toast.tsx waits for that first answer before it animates the HUD in, so a toast still appears in place. Later moves glide with a Reanimated LinearTransition: the tabs appearing under the launch toast, or a sheet over the tabs closing under a toast. Since the HUD's own window is the one to look in, the tabBarFrame async function and its window-id lookup are gone.

The native fingerprint in ota-fingerprint.json is updated. The runtime version stays 19.2.0, which hasn't shipped.

Testing

  • Jest: the toast tests cover waiting for the first answer, following the tab bar as it comes and goes, and gliding only after the first placement. The HUD mock now reports the tab bar the way the native view does.
  • Swift: TabBarLocatorTests gains a test of the HUD following the tab bar in and out of a window. scripts/checks/test-ios.sh passes; ToastModule.swift line coverage is 98.9%.
  • learnX iPhone 18 Pro simulator, debug build: over two cold launches the logging-in toast appears above the tab bar in every frame. An ordinary toast with the tabs showing still appears in place, with no glide on entry.

Generated by Claude Code

The toast asked UIKit once, as it mounted, where the tab bar is. At launch the logging-in toast mounts before the tab bar can be found, so it took the plain bottom margin and sat on the tab bar. It now asks again while it shows and moves when the tab bar comes or goes, which also covers a sheet closing under a toast.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A5JNTorb8QGfQkHSuBDxHJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A5JNTorb8QGfQkHSuBDxHJ
@robertying robertying self-assigned this Nov 25, 2026
@robertying
robertying merged commit 27bee53 into main Nov 25, 2026
14 checks passed
@robertying
robertying deleted the claude/project-thread-rgc7w3 branch November 25, 2026 19:16
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