Skip to content

Add initial iOS Find in Post support - #609

Open
yunuschoudhurywork-lang wants to merge 1 commit into
wordpress-mobile:trunkfrom
yunuschoudhurywork-lang:add-find-in-post
Open

Add initial iOS Find in Post support#609
yunuschoudhurywork-lang wants to merge 1 commit into
wordpress-mobile:trunkfrom
yunuschoudhurywork-lang:add-find-in-post

Conversation

@yunuschoudhurywork-lang

Copy link
Copy Markdown

What?

Adds the initial iOS native Find in Post spike to GutenbergKit by enabling WKWebView's native Find interaction and exposing a presentFindNavigator() method from EditorViewController.

Why?

This is part of the work for WordPress-Android #23222 ("Find in post").

The editor is shared through GutenbergKit, so the Find behavior should be implemented at the GutenbergKit level rather than separately in the host applications.

This spike is intended to verify whether the native WKWebView Find interaction is suitable for Gutenberg's contenteditable editor before proceeding with the Android implementation.

How?

  • Enables WKWebView.isFindInteractionEnabled.
  • Adds presentFindNavigator() to EditorViewController, which presents the native iOS Find navigator.
  • Keeps the implementation limited to the native iOS Find API for this initial feasibility spike.

Testing Instructions

Runtime testing is still pending.

I am developing on Windows and currently do not have access to a macOS/iOS environment to run the GutenbergKit iOS application.

Once an iOS environment is available, verify:

  1. Open a post containing repeated instances of the same text.
  2. Open the native Find navigator.
  3. Search for the repeated text.
  4. Verify that matching text is highlighted.
  5. Navigate between matches using next/previous.
  6. Verify that the editor scrolls to the selected match.
  7. Dismiss the Find navigator.
  8. Verify that searching does not modify the post or create an undo/redo entry.
  9. Verify that Gutenberg's caret/block selection is not unexpectedly changed.

Accessibility Testing Instructions

Runtime accessibility testing is pending because an iOS/macOS environment is not currently available.

Once available, verify that the native Find navigator can be opened and operated using VoiceOver, including entering a search query, navigating between matches, and dismissing the navigator.

Screenshots or screencast

Not available yet because runtime iOS testing is pending.

@dcalhoun

Copy link
Copy Markdown
Member

@yunuschoudhurywork-lang thank you for exploring this. It may take me a little while to begin review of this, but hopefully I can next week. I'll follow up.

@dcalhoun
dcalhoun self-requested a review August 28, 2026 13:05
@yunuschoudhurywork-lang

Copy link
Copy Markdown
Author

@dcalhoun sure sir!! I'll wait for your confirmation then only I proceed further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants