I have an formatted HTML string and want to load it in a wkwebview and scale it so that it fits in height and width of the wkwebviews frame.
I have already tried playing around with adding a viewport to the HTML but I just managed it to scale in widht but not to the height.
var test = "<html><head><meta name='viewport' content='width=150, user-scalable=no'><style>* {margin:0;padding:0;}body {font-weight: normal;line-height:1.3;font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;background-color: transparent;font-size:12px; }</style></head><body><div><div style =\"background:rgb(63, 63, 63);height:100%;padding:5px 5px 5px 30px;text-align:left;\"><span style=\"color:#ffffff;font-family:'Open Sans', sans-serif;\">The EU General Data Protection Regulation</span></div></div></body></html";
var webview = new WKWebView(new CGRect(10, 10, 150, 30), new WKWebViewConfiguration() { Preferences = new WKPreferences() { } });
webview.LoadHtmlString(test, null);
View.AddSubview(webview);
Does anybody have any idea how to achieve this?