🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

rotate

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

RotateSample

@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RotateSample() {
    RemoteBox(RemoteModifier.rotate(45f.rf).size(100.rdp, 100.rdp).background(Color.Red.rc))
}

Content updated: