animateRotateBy

Function

Common
suspend fun TransformableState.animateRotateBy(
    degrees: Float,
    animationSpec: AnimationSpec<Float> = SpringSpec(stiffness = Spring.StiffnessLow),
)

Animate rotate by a ratio of degrees clockwise and suspend until its finished.

Parameters

degreesthe degrees by which to rotate clockwise
animationSpecAnimationSpec to be used for animation