Is it possible to add WKWebViewConfiguration() manually to my WKWebView without instantiation? I ask this because I have an IBOutlet WKWebView from Storyboard(with constrains).
This works (not from Storyboard - manually instantiate):
var myWebView: WKWebView!
let webConfiguration = WKWebViewConfiguration()
myWebView = WKWebView(frame: view.bounds, configuration: webConfiguration)
What I want to do is something like this:
@IBOutlet weak var myWebView: WKWebView!
let webConfiguration = WKWebViewConfiguration()
myWebView.configuration = webConfiguration //this line does not work
All other stuff is working with an IBOutlet WKWebView, just the configuration are not passing through for JS Bridge e.g.
Someone an idea how to allocate the WKWebViewConfiguration() to my IBOutlet WKWebView?