animate Text
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.
coroutine Scope
CoroutineScope for launching the animation.
view
Optional View for performing haptic feedback.