Is there an easier way to preview `CoilImage()` si...
# compose
s
Is there an easier way to preview
CoilImage()
similar to
<ImageView tools:src="@tools:sample/avatars" ... />
or possibly any alternatives to quickly viewing image composable while designing a screen?
j
Pass a fake local image
s
Fake local image or a fake local composable? Setting fake image would still not give preview with CoilImage.
If I do a fake composable then it seems like way too much work maintaining two composables according to the same specs.
v
Yes, it is possible.
previewPlaceholder
was added to
CoilImage
and
GlideImage
in version
0.7.1
. https://github.com/google/accompanist/pull/290/
👍 1
s
Thanks. That saves a lot of time.