How can i set dynamic height in webview . ```webV...
# multiplatform
s
How can i set dynamic height in webview .
Copy code
webView.frame.size.height // this works in swift UI but in kotlin frame is of type CValue<CGRect>. And size is present in CGRect.
in iOS where webview is WkWebview.
a
Copy code
val rect = this.bounds.useContents {
    CGRectMake(0.0, 0.0, this.size.width / 2, this.size.height / 2)
}
webView.setFrame(rect)