iOS-WKWebViewBridgeExample-Swift icon indicating copy to clipboard operation
iOS-WKWebViewBridgeExample-Swift copied to clipboard

Add clean up instructions to prevent memory leaks

Open ArkadiYoskovitz opened this issue 9 years ago • 0 comments

You should add the following in the view controllers deinit

deinit { webView.configuration.userContentController.removeScriptMessageHandlerForName("buttonClicked") webView.configuration.userContentController.removeAllUserScripts() }

ArkadiYoskovitz avatar Sep 10 '16 07:09 ArkadiYoskovitz