Custom UIView over specific text in WKWebView?

Hi,


Is there a way to embed a UIView inside the HTML laid out by WKWebView? Or, get the exact screen coordinates of an element, so that an overlaid sibling UIView could appear to be part of the HTML? I've got some rich text that I'm currently rendering with the WKWebView, and I'd like to create an animation around some of the text, using a UIView, not Javascript/HTML.


I may also try UITextView, since the text is pretty simple.


Rob

You might be able to get the frame of the HTML element, by executing some JS code using https://developer.apple.com/documentation/webkit/wkwebview/1415017-evaluatejavascript
Custom UIView over specific text in WKWebView?
 
 
Q