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.
- Host: GitHub
- URL: https://github.com/luca992/coil-composable
- Owner: luca992
- License: apache-2.0
- Created: 2020-05-14T00:08:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-22T06:20:27.000Z (over 4 years ago)
- Last Synced: 2023-08-07T01:52:35.056Z (about 2 years ago)
- Topics: coil, coil-kotlin, gifs, jetpack-compose, kotlin, kotlin-android
- Language: Kotlin
- Homepage:
- Size: 144 KB
- Stars: 21
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](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
)
)
}
```