Closed Daocheng closed 5 years ago
When dealing with code like webView.evaluateJavaScript(#"window.dispatchEvent(new CustomEvent("webview:active"));"#, completionHandler: nil)
webView.evaluateJavaScript(#"window.dispatchEvent(new CustomEvent("webview:active"));"#, completionHandler: nil)
Swimat insert a space wrongly. webView.evaluateJavaScript(#"window.dispatchEvent(new CustomEvent("webview: active"));"#, completionHandler: nil)
webView.evaluateJavaScript(#"window.dispatchEvent(new CustomEvent("webview: active"));"#, completionHandler: nil)
Is #" a new start of String indicator?
#"
See more details. https://github.com/apple/swift-evolution/blob/master/proposals/0200-raw-string-escaping.md
When dealing with code like
webView.evaluateJavaScript(#"window.dispatchEvent(new CustomEvent("webview:active"));"#, completionHandler: nil)
Swimat insert a space wrongly.
webView.evaluateJavaScript(#"window.dispatchEvent(new CustomEvent("webview: active"));"#, completionHandler: nil)