s

    Sudhir Singh Khanger

    1 year ago
    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?
    Javier

    Javier

    1 year ago
    Pass a fake local image
    s

    Sudhir Singh Khanger

    1 year ago
    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

    valkovic

    1 year ago
    Yes, it is possible.
    previewPlaceholder
    was added to
    CoilImage
    and
    GlideImage
    in version
    0.7.1
    . https://github.com/google/accompanist/pull/290/
    s

    Sudhir Singh Khanger

    1 year ago
    Thanks. That saves a lot of time.