I can't find a situation where the load(_ request: URLRequest) method of WKWebView would ever return nil, though the return object is WKNavigation?
I've tested on a playground with URLs generated from all kinds of strings and can't make it return nil. I also ran without Internet connection, but I still get a WKNavigation returned.
If it never returns nil, I can be sure that any loading failure can be picked up in the navigation delegate methods, which subsequently simplifies the rest of my code.
Does it ever return nil? If so, under what conditions?
Many thanks in advance