We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overriding navigationDeledate causes ErikError.noContent, if you remove the view.navigationDelegate = self line then it content is produced.
ErikError.noContent
view.navigationDelegate = self
class Test: LayoutEngineNavigationDelegate { let view: WKWebView let browser: Erik override init() { view = WKWebView() browser = Erik(webView: view) super.init() view.navigationDelegate = self } func test() { browser.visit(url: URL(string: "https://google.com")!) { (document, err) in debugPrint(err as Any) debugPrint(document as Any) } } }
The text was updated successfully, but these errors were encountered:
It still occurs if you use
class Test: LayoutEngineNavigationDelegate { override init() { super.init() } } /* ... */ if let engine = Erik.sharedInstance.layoutEngine as? WebKitLayoutEngine { let webView: WKWebView = engine.webView webView.navigationDelegate = Test() } Erik.visit(url: URL(string: "https://google.com")!) { (document, err) in debugPrint(err as Any) debugPrint(document as Any) }
Sorry, something went wrong.
No branches or pull requests
Overriding navigationDeledate causes
ErikError.noContent
,if you remove the
view.navigationDelegate = self
line then it content is produced.The text was updated successfully, but these errors were encountered: