Repository navigation
task(ios): auto-focus the site URL field when adding a site - #787
Merged
Merged
Conversation
Matches the Android demo app, so the URL can be typed without first tapping the field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dcalhoun
marked this pull request as ready for review
October 14, 2026 14:53
XCFramework BuildThis PR's XCFramework is available for testing. Add the following to your .package(url: "https://github.com/wordpress-mobile/GutenbergKit", branch: "pr-build/787")Built from 089d761 |
crazytonyli
approved these changes
Oct 14, 2026
dcalhoun
enabled auto-merge (squash)
October 14, 2026 20:14
dcalhoun
disabled auto-merge
October 14, 2026 20:36
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.
What?
Auto-focus the site URL field when adding a site in the iOS demo app.
Why?
Improved UX and quicker to use.
How?
Conditionally auto-focus the field via a new state variable.
Testing Instructions
Accessibility Testing Instructions
N/A, unnecessary for the demo app.
Screenshots or screencast
Screen.Recording.iPhone.18.Pro.10-14-2026.at.10.52.32.mp4
AI-generated details
Focuses the Site URL field when the iOS demo app's "Add WordPress Site" sheet opens, matching the Android demo app.
Uses
@FocusState+.focused(_:), set in.onAppear..defaultFocus(_:_:)(iOS 17+) was tried and did not focus the field in the sheet on the iOS 27 simulator.Testing: launch the iOS demo app, open the add-site sheet, and confirm the Site URL field has a cursor (toggle the software keyboard with ⇧⌘K in the simulator if needed).
🤖 Generated with Claude Code