Is there an easy way to rotate an Image in compose...
# compose
g
Is there an easy way to rotate an Image in compose?
z
You can use
DrawLayerModifier
to transform any composable, including images: https://developer.android.com/reference/kotlin/androidx/ui/core/DrawLayerModifier
­čĹŹ 1
g
Here is the one liner solution:
Copy code
Image(
    modifier = Modifier.drawLayer(scaleY = -1f),
    asset = imageFromResource(context.resources, R.drawable.path_1679)
)