Erik
Erik copied to clipboard
"WKWebView.navigationDelegate must be used from main thread only" error when running tests
+1
You can comment and PR, it's just an assert
@phimage what do you mean?
assert: https://developer.apple.com/documentation/swift/1541112-assert
lol I know what assert is but im just not familiar with the whole threading stuff. So you mean that line is not needed?
no you must learn also about assert assert will not be executed with normal compilation flag (of release configuration) So this code is only in dev mode, and yes it could be commented..
Now if you want to know about threading stuff, just copy past the error message in short graphical element must be acceded from main thread only (to avoid many concurent issue, such as draw concurently)