How can I get the string value in Optional() in swift, which is followed by nil?any other proper way to use this evaluateJavaScript() and get the callback value?
webView.evaluateJavaScript("(function() { return 'this'; })();",
completionHandler: {
result in
//Handle your variable
print(result)//(Optional(this), nil)
})