With iOS 11 Apple has added the ability set add WKWebViews outlets on your nibs and storyboards. It seems to work fine when using the default WKWebViewConfiguration that get set automatically.
However, I'd like to be able to use a custom WKWebViewConfiguration. Is there anyway I can set this before, or after the WKWebView gets initialized from the nib?
It is not possible to set the configuration of the WKWebView through the outlet of WKWebView form the storyboard because the configuration property of the WKWebView is read only, instead we need to programmatically configure as given below.
And implement the WKScriptMessageHandler delegate method
Hope this helps...
You can create WKWebView in Storyboard and then using
WKUIDelegate:createWebViewWith
for creating new WKWebView with configuration alone.