KwikImageLoader

fun KwikImageLoader(modifier: Modifier = Modifier, url: Any, shape: Shape? = null, @DrawableRes placeholder: Int = R.drawable.ic_placeholder, contentDescription: String? = null, contentScale: ContentScale = ContentScale.Crop, loading: () -> Unit = {}, success: () -> Unit = {}, error: () -> Unit = {}, colorFilter: ColorFilter? = null, onClick: () -> Unit = {})

An image loader that uses Coil to load images.

Parameters

modifier

The modifier to apply to the image.

url

The URL of the image to load.

placeholder

The placeholder to show while the image is loading.

contentDescription

The content description of the image.

contentScale

The scale of the image.

loading

The action to perform when the image is loading.

success

The action to perform when the image has loaded successfully.

error

The action to perform when the image has failed to load.

colorFilter

The color filter to apply to the image.

onClick

The action to perform when the image is clicked.