This is my setting for WKWebView:
func setupWebView() -> WKWebView {
let configutation = WKWebViewConfiguration()
configutation.selectionGranularity = .Character
let webView = WKWebView(frame: CGRect(x: 0, y: 20, width: UIScreen.mainScreen().bounds.size.width, height: UIScreen.mainScreen().bounds.size.height),
configuration: configutation)
view.addSubview(webView)
return webView
}
Then used lazy to get:
lazy var webView: WKWebView = self.setupWebView()
Both the same problem in Device or Simulator:
Setting the property to .Dynamic seem works well.
But I don't want the Selection style.
Does anyone know how to solve problem?
Thanks a lot!