commonMain.com.dokar.chiptextfield.util.Modifier.ext.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chiptextfield-core-jvm Show documentation
Show all versions of chiptextfield-core-jvm Show documentation
Editable chip layout in Jetpack Compose.
package com.dokar.chiptextfield.util
import androidx.compose.ui.Modifier
inline fun Modifier.runIf(
value: Boolean,
block: Modifier.() -> Modifier
): Modifier {
return if (value) {
this.block()
} else {
this
}
}