I'm trying to use `ImageComposeScene` to capture s...
# compose-desktop
m
I'm trying to use
ImageComposeScene
to capture some UI to an image. The UI contains an asynchronously loaded image, and the output I am getting is before the image was loaded. How can I capture the composable after the image is loaded?
https://kotlinlang.slack.com/archives/C01D6HTPATV/p1716380827575839 Someone had the same issue here, but they worked around it by removing the asynchronous loading, which is not feasible for me.
a
Add something in your UI that makes it possible to detect the image has been loaded. Then use
registerIdlingResource
with a corresponding condition.
m
Isn't
registerIdlingResource
exclusive to Espresso on Android? I'm unfamiliar with idling resources in Compose Desktop.
a
It works on all platforms.