Last active
May 26, 2019 17:53
-
-
Save JillevdW/0b7a30480e983f0bd0f19b53b9663fad to your computer and use it in GitHub Desktop.
send message to javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func sendToJavascript(name: String, age: Int) { | |
| webview.evaluateJavaScript("addPerson('\(name)', \(age))", completionHandler: nil) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment