animateText

fun animateText(offset: Animatable<Float, AnimationVector1D>, coroutineScope: CoroutineScope, view: View? = null)

Function to animate a shaking text field.

Parameters

offset

Animatable for applying a shaking animation.

coroutineScope

CoroutineScope for launching the animation.

view

Optional View for performing haptic feedback.