Hello, is there a way to apply a rotation animation with an anchor point? So far, all modifiers I've found apply the rotation at the center. There is a
rotationMatrix
method where you can specify your anchor point but I don't think it's supported by Compose yet. Am I missing something?
r
romainguy
02/03/2022, 5:49 PM
I know thereβs a way to specify the rotation pivot with a
TransformOrigin
that you give to a
Modifier.graphicsLayer()
π 2
s
Stephen Vinouze
02/03/2022, 6:19 PM
That was it π I could shift the anchor point to the top center and apply and swing-like rotation animation