Skip to content

Overriding navigationDelegate causes ErikError.noContent #58

@L3afMe

Description

@L3afMe

Overriding navigationDeledate causes ErikError.noContent,
if you remove the view.navigationDelegate = self line then it content is produced.

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)
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions