title: how to call a swift function from javascript
body: <p>I am injecting a script in <code>UIWebView</code> using Swift. When a certain tap action happens, the script takes care of the handling. While this happens, the JavaScript is supposed to make a call to one of the functions in Swift, which saves the data sent from JavaScript in native variable. Please help me in making this call.</p>