Repository navigation
Keep iOS Connect above the keyboard when it changes height - #1078
Merged
Merged
Conversation
Moving from the name field to the password field swaps in a keyboard of another height after focus has already scrolled Connect into view, so Connect could end up behind the keys. Re-scroll whenever the visible keyboard changes height, not only when it first appears.
There was a problem hiding this comment.
Automated review: 1 finding(s) that 2+ of 3 passes agreed on.
Outside the diff lines:
ios/OpenCode Mobile/OpenCode Mobile/UI/Connection/ConnectionSetupView.swift:79medium: Rescroll on every overlap change fights interactive keyboard dismissal
opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.017
This was referenced Nov 18, 2026
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.
Summary
On iOS Add server, entering the host, then the name, then tapping the password field could leave Connect hidden behind the keyboard. It did not happen every time.
While the keyboard is up, Connect sits in the scroll content. It was scrolled into view only when focus moved or when the keyboard first appeared. Moving into the password field swaps in a keyboard of another height (no predictive bar, a Passwords bar instead). That happens after the focus scroll has already run, and the keyboard was already visible, so nothing scrolled again. How often this showed depended on the previous field's keyboard, the Passwords bar, and animation timing.
The screen now scrolls again whenever the visible keyboard changes height. The rule is
ConnectionSetupKeyboardLayout.needsRescroll(oldOverlap:newOverlap:), which replaces the visibility-only trigger inConnectionSetupView.Checks
ConnectionSetupKeyboardLayoutTests(6 tests) pass.Risks / Follow-ups
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.