All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.seiko.imageloader.option.Scale.kt Maven / Gradle / Ivy

There is a newer version: 1.8.3
Show newest version
package com.seiko.imageloader.option

import androidx.compose.ui.layout.ContentScale

enum class Scale {
    FILL,
    FIT,
}

fun ContentScale.toScale() = when (this) {
    ContentScale.Fit, ContentScale.Inside -> Scale.FIT
    else -> Scale.FILL
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy