commonMain.com.bselzer.ktx.compose.ui.layout.merge.IndicationMerger.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-ui-layout-jvm Show documentation
Show all versions of compose-ui-layout-jvm Show documentation
Base extensions for laying out Compose Multiplatform UI.
package com.bselzer.ktx.compose.ui.layout.merge
import androidx.compose.foundation.Indication
import androidx.compose.foundation.IndicationInstance
import androidx.compose.foundation.interaction.InteractionSource
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.ui.graphics.drawscope.ContentDrawScope
class IndicationMerger : ComponentMerger {
override val default: Indication = Default
companion object {
@Stable
val Default = object : Indication {
@Composable
override fun rememberUpdatedInstance(interactionSource: InteractionSource) = Instance
}
@Stable
private val Instance = object : IndicationInstance {
override fun ContentDrawScope.drawIndication() = drawContent()
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy