stylishPressScale

fun Modifier.stylishPressScale(interactionSource: InteractionSource, pressedScale: Float? = null): Modifier

Adds a restrained press-scale response to an interactive surface.

The scale is driven by InteractionSource, so it remains compatible with hoisted interaction state and pointer/keyboard activation. Reduced-motion settings disable the interpolation and keep the surface at its resting scale.

Parameters

pressedScale

Optional override for the scale while pressed. When omitted, the current theme's com.segnities007.stylishui.tokens.StylishAnimationTokens.pressedScale is used.