Closed tuyendv2 closed 8 years ago
I got compiling error Cannot convert value of type '_ -> ()' to expected argument type 'inout WKWebView -> Void' with this code
webView.then { $0.navigationDelegate = self }
However, the error's gone when there are two assignments in the block
webView.then { $0.navigationDelegate = self $0.tag = 1 }
Hi @tuyencoder, it seems to be an Xcode issue.
Possible workaround is to put return.
return
webView.then { $0.navigationDelegate = self return }
It works now. Thank you!
:smile:
I got compiling error Cannot convert value of type '_ -> ()' to expected argument type 'inout WKWebView -> Void' with this code
However, the error's gone when there are two assignments in the block