RotateSample
@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RotateSample() {
RemoteBox(RemoteModifier.rotate(45f.rf).size(100.rdp, 100.rdp).background(Color.Red.rc))
}Sets the degrees the view is rotated around the center of the composable.
@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RotateSample() {
RemoteBox(RemoteModifier.rotate(45f.rf).size(100.rdp, 100.rdp).background(Color.Red.rc))
}Content updated: