Closed Vaibhav2002 closed 3 weeks ago
Interop views don't support sizing based on intrinsic content size of native views (and most likely won't be, Compose and UIKit have different layout systems). Moreover, WKWebView doesn't have any intrinsic size. These closest you can get to mimic it is - https://stackoverflow.com/questions/27515236/how-to-determine-the-content-size-of-a-wkwebview and provide it explicitly.
Describe the bug When using a WkWebView inside a UIKit view without setting a fixed height using
Modifier.height()
inside a LazyColumn Item, it is not displayed When a fixed height it set, it is displayed.Affected platforms
Versions
To Reproduce Steps to reproduce the behavior:
Run this code snippet:
Screenshots
When fixed height
Modifier.height(400.dp)
applied toNativeWebView
, It looks fineWithout fixed height:
Additional context
My use case is to embed Tweets, Reddit Post, Yt Videos and other embeddable html in a LazyColumn Item