Repository navigation
Keep the toast clear of a tab bar that appears while it shows - #1820
Merged
Merged
Conversation
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A5JNTorb8QGfQkHSuBDxHJ
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.
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 checksTabBarLocatorevery frame and sendsonTabBarFramewhenever the answer changes, starting with the first answer before the HUD's first layout.Toast.tsxwaits for that first answer before it animates the HUD in, so a toast still appears in place. Later moves glide with a ReanimatedLinearTransition: 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, thetabBarFrameasync function and its window-id lookup are gone.The native fingerprint in
ota-fingerprint.jsonis updated. The runtime version stays 19.2.0, which hasn't shipped.Testing
TabBarLocatorTestsgains a test of the HUD following the tab bar in and out of a window.scripts/checks/test-ios.shpasses;ToastModule.swiftline coverage is 98.9%.Generated by Claude Code