title: Catch Javascript Event in iOS WKWebview with Swift
body: <p>I am building an app with web programming languages and want to start the camera when the user clicks on an HTML button. Since I want my camera view to be a custom one, I need to design it with Swift. So when the user clicks on this HTML button, I want to "catch" this click in Swift so I can start my native camera view.</p>
  
  <p>I know it can be done with the WKWebview, but I don't really know how to do that.</p>
  
  <p>For example, my Javascript (jQuery) code could look like that :</p>
  
  <pre><code>// User clicks to start the native camera with Swift
  $(".camera_button").click(function() {
      // Function to call the camera view from JS to Swift
  });
  </code></pre>
  
  <p>Can you help me to do that?</p>
  
  <p>Thanks.</p>