Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

rotate

Sets the degrees the view is rotated around the center of the composable.

rotate

Source set: Android
public fun RemoteModifier.rotate(degrees: RemoteFloat): RemoteModifier

Sets the degrees the view is rotated around the center of the composable. Increasing values result in clockwise rotation. Negative degrees are used to rotate in the counter clockwise direction

Parameters

degrees Degrees to rotate the content.

Last updated: