public override async void OnPageFinished(Android.Webkit.WebView view, string url) { if (_webView != null) { int i = 10; while (view.ContentHeight == 0 && i-- > 0) // wait here till content is rendered { await System.Threading.Tasks.Task.Delay(100); } _webView.HeightRequest = view.ContentHeight; } _webView?.InvokeCompleted(); base.OnPageFinished(view, url); }
public override void DidFinishNavigation(WKWebView webView, WKNavigation navigation) { Debug.WriteLine($"CustomWkWebViewNavigationDelegate - DidFinishNavigation"); element.InvokeCompleted(); //base.DidFinishNavigation(webView, navigation); }