Is it possible to create my own UIWebView based on WebKit for iOS?

Apple (partially) opened the source webkit and JavaScriptCore engine that they use on iOS: http://www.opensource.apple.com/release/ios-433/

You can already create, use, and submit your version of JavaScriptCore on iOS. Is it possible, however, to do the same with the WebKit rendering engine? UIWebView on iOS is very limited. An important feature that it is missing is access to the JavaScript JavaScript object. Without it, it is almost impossible to run some code directly in JavaScriptCore and some code in a web view. Therefore, I am interested in creating my own web view based on WebKit, which provides a JavaScript context.

Are there any projects that have already done any work in this regard? Can the compiled web view library be too large to be sent using the application?

Thanks!

+6
source share
3 answers

I think, unfortunately, the answer is no.

-1
source

It is very possible. In fact, this has already been done. Impact is an iOS game engine that compiles its own JavaScript core. Here's a blog post with some technical details .

I will not dwell here in detail, the links should contain more than enough details.

+1
source

It is possible, but Apple does not allow it. For the same official reasons that they did not allow Google to submit their version of WebKit using their browser. Google must use UIWebView.

+1
source

Source: https://habr.com/ru/post/893769/


All Articles