Specifically, we want to scope WebView search, highlighting and "find next" interactions, and look at existing libraries/pods/interfaces that may do some or all of the heavy lifting for this feature.
Main product ticket is here: T97777
Key questions to answer:
Finding
- Can we search for a text string within the web view content itself?
- Or is it better search the html on disk?
- It we find it using the html on disk, can we easily locate the string in the web view's html?
- Is Adam's code for extracting the share a fact text useful here?
- Are we able to search image captions?
- Can we exclude non-visible text (like href urls) form the search?
Highlighting
- Can we get the frame of any text we find in the we view?
- What about text that spans multiple lines?
- Can we use CSS to highlight the text?
- Can we use native views to highlight the text? Is this harder than CSS?
- Can we animate the highlight? (Think fade in/out and scale)
Navigating
- Can we scroll (with animation) to the position of a specific string of text?