Function

rotate

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

rotate

Source set: JvmAndAndroid
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.

Example of rotating a box clockwise around its center:

Parameters

degrees Degrees to rotate the content.

Return

a RemoteModifier that rotates the content by degrees

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: