An open API service indexing awesome lists of open source software.

https://github.com/luca992/coil-composable

A simple library to load images and gifs into a Jetpack Compose Image composable using Coil.
https://github.com/luca992/coil-composable

coil coil-kotlin gifs jetpack-compose kotlin kotlin-android

Last synced: 6 months ago
JSON representation

A simple library to load images and gifs into a Jetpack Compose Image composable using Coil.

Awesome Lists containing this project

README

          

[![](https://jitpack.io/v/luca992/coil-composable.svg)](https://jitpack.io/#luca992/coil-composable)

A simple library to load images and gifs into a Jetpack Compose Image composable using Coil.

# How to get
add jitpack repo:
```
repositories {
maven { url "https://jitpack.io" }
}

*.kts
repositories {
maven { setUrl("https://jitpack.io") }
}
```
add dependency:
```
implementation 'com.github.luca992:coil-composable:{version}'

*.kts:
implementation("com.github.luca992:coil-composable:{version}")
```

# How to use
```
CoilImage("url")
```

or if you want more control
```
CoilImage("url") {
// this LoadRequestBuilder
placeholder(
ResourcesCompat.getDrawable(
context.resources,
R.drawable.loading_indicator,
null
)
)
}
```