Combining WKWebview with ofApp

Is there a proper working example on how to load a WKWebview over an openFrameworks app, and use it as a navigational layer? (as of now, I am having runtime errors when trying out projects like iosNativeExample, or iosStoryBoardExample ) A solution like https://ultralig.ht/ would also be appreciated that works on iOS

Was trying these very outdated instructions with no luck: open webpage within OF app on iPhone and https://github.com/daanvanhasselt/ofxiPhoneWebViewController

Some progress: I could successfully add & display html & javascript content into a transparent WKWebView by adding the following snippet in the iOSCustomSize example at the end of the - (void)loadView function:


    string filename = "demo";
    NSString *_filename = [NSString stringWithCString:filename.c_str() encoding:[NSString defaultCStringEncoding]];
    
    WKWebView *webView = [[WKWebView alloc] initWithFrame:self.view.bounds];
    NSString *path = [[NSBundle mainBundle] bundlePath];
    NSURL *baseURL = [NSURL fileURLWithPath:path];
    
    NSString *htmlFile = [[NSBundle mainBundle] pathForResource:_filename ofType:@"html" inDirectory:@"www"];
    
    NSString* htmlString = [NSString stringWithContentsOfFile:htmlFile encoding:NSUTF8StringEncoding error:nil];
    //NSString *htmlString = @"<!DOCTYPE html><html><body>Hello World</body></html>";
    [webView loadHTMLString:htmlString baseURL:baseURL];

    [ofxiOSGetGLView() addSubview:webView];
    [webView release];
    
    webView.backgroundColor = [UIColor clearColor];
    [webView setOpaque:NO];

I am having the demo.html file in the bin/data/www dir. Nice start, however I have to write my own binding functions for interacting between the javascript & oF content…