Crashing WKCompositingView

Hello,

I am having a WKWebView with a lot of external resources loaded (Twitter includes), I have the Problem that when there are a lot of them (>10) the WKWebView is blank. After checking why I found out that in this case there is no longer a WKCompositingView, where other views in the view hierarchy it still is.


Anybody experienced the same issue ?


About the Integration : the WKWebView is inside a UITableViewCell inside a UITableView. I am using callbacks to retrieve the height of the content inside the WKWebView and I reload the cell accordingly, adjusting the frame of the WKWebView and the cell height.


Thanks,


Tom

I encountered the same problem in iOS 10 (b1&b2)

My solution works well in iOS 9 and iOS 8.


steps:

1. calculate the height of the cell, and put the result in the callback

2. in the callback, call ```tableView.beginUpdates()``` and ```tableView.endUpdates()```. This will automatically update the desired cell's height in the tableView.


However, in iOS 10, WKWebView failed to render the html properly. When you set webView's frame height equals to it's contentSize height and set it's scrollEnabled to false.

Can you give me example in github?

Not 100% sure of the inner workings but this SO post helped me solve the issue you are facing: http://stackoverflow.com/questions/39549103/wkwebview-not-render-correctly-in-ios-10

Crashing WKCompositingView
 
 
Q