Hi, I noticed that `android:autoMirror` doesn't wo...
# multiplatform
r
Hi, I noticed that
android:autoMirror
doesn't work with compose resources, is there a solution for this already or this still not supported?
h
Some icons from the material library that are soon to be removed have auto mirrored option
r
yeah but I have my own icons as xml vectors
h
Copy code
@Stable
fun Modifier.mirror(): Modifier = composed {
    if (LocalLayoutDirection.current == LayoutDirection.Rtl)
        this.scale(scaleX = -1f, scaleY = 1f)
    else
        this
}
Or you can use the same logic and use the graphics later to rotate it by 180°C
r
yup I used rotate for now, but its weird they don't support it by default