-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Remove FXIOS-14618 [Performance] Remove layout calls and a keyboard overlay view #31735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🧹 Tidy commitJust 3 file(s) touched. Thanks for keeping it clean and review-friendly! 🎉 BrowserViewController got smallerNice! ✅ Per-file coverageAll changed files meet the threshold of 35.0%. Client.app: Coverage: 37.42
Generated by 🚫 Danger Swift against f241117 |
FilippoZazzeroni
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @Cramsden just a comment around updateToolbarLayout
| guard !areAllStacksAlreadyVisible else { return } | ||
|
|
||
| let isAnimationEnabled = !UIAccessibility.isReduceMotionEnabled && animated | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.layoutIfNeed is needed during the animation to animate the constraints changes on the LocationView otherwise it will result in junky animation. i've updated this code in this PR to make the call to this method less frequent only when there are some stacks that aren't visible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah ok! I didn't notice the animation difference.
|
@Cramsden should these changes be behind a feature flag maybe? |
|
|
||
| guard let searchController = self.searchController else { return } | ||
|
|
||
| // This needs to be added to ensure during animation of the keyboard, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad we can remove this! This was a hacky thing at the time for the legacy toolbar in 2022 😆. I pulled the branch to test that particular use case just in case and all LGTM!
|
This pull request has conflicts when rebasing. Could you fix it @Cramsden? 🙏 |
|
@thatswinnie it is a question I was also asking myself! I was able to test these areas of code pretty easily so I am hopeful that they are not as brittle as the bvc changes.... but I could! |
24c2885 to
79ff418
Compare
79ff418 to
1c91c2f
Compare
|
@Cramsden maybe to be sure add the feature flag? Better save than sorry I guess. We could remove it after a month in the wild. |
📜 Tickets
Jira ticket
💡 Description
Remove layoutIfNeeded calls that do not seem to be needed as well as removing a keyboard backdrop view that does not seem to impact the animation.
🎥 Demos
Demo
📝 Checklist