I am rendering a webpage in WKWebView, and in that webpage, i need to override one button action with a native swift code.Like in webpage on click of a button it navigates to another page, but in mobile, I need a storyboard to be displayed. I am not getting any direct links to implement this. below is the code sample i tried:
let webConfiguration = WKWebViewConfiguration()
let userController = WKUserContentController()
userController.add(self, name: "performClick")
webConfiguration.userContentController = userController
webView = WKWebView(frame: .zero, configuration: webConfiguration)
webView.uiDelegate = self
webView.navigationDelegate = self
view = webView