Repository navigation
fix(ios): header symbol buttons no longer fade in on every rebuild (t3.61) - #18
Merged
Merged
Conversation
Every Fabric header rebuild built new UIBarButtonItems and swapped them in with setLeft/RightBarButtonItems:animated:YES. UIKit blurs a new bar item in when it enters the window, and the animated swap runs its own transition on top. In T3 Code a keyboard show or hide adds or drops a dismiss-keyboard item on every stack header: one tap on search rebuilt 7 headers 16 times in about 320 ms, so the visible buttons were replaced and re-faded several times in a row. On the iPhone Duo the trailing items sit in the vertical bar, and there the transition regularly stops partway: the glass buttons stay blurred with no icon until the screen is rebuilt. - Leading and trailing items are set without animation, including when a header is cleared. The toolbar already did this. - A rebuilt plain symbol button (no custom view, menu or overflow menu) copies its new contents onto the button already shown for the same item id, like the toolbar's retained icon buttons, so UIKit keeps the view it has. Buttons with menus are still rebuilt, since their menus capture the toggle state tracker a rebuild replaces. - applyItems skips setting an item array that hasn't changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
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.
T3 Code's
mainalready ships this fix as5.0.0-t3.59, built from @maschwenk's branch for #16 (pingdotgg/t3code#38705), but it never reachedt3/main. This brings his commit, with his authorship, ontot3/mainafter #17 and releases both as5.0.0-t3.61, the tarball pingdotgg/t3code#38045 ships.The packed
t3.61differs frommain'st3.59only by #17's two changes;ios/header/RNSHeaderCoordinator.mmis byte-identical.🤖 Generated with Claude Code