Raed Ghazal
09/15/2024, 6:41 PMandroid:autoMirror
doesn't work with compose resources, is there a solution for this already or this still not supported?Hristijan
09/15/2024, 7:41 PMRaed Ghazal
09/15/2024, 8:02 PMHristijan
09/15/2024, 10:53 PM@Stable
fun Modifier.mirror(): Modifier = composed {
if (LocalLayoutDirection.current == LayoutDirection.Rtl)
this.scale(scaleX = -1f, scaleY = 1f)
else
this
}
Hristijan
09/15/2024, 10:54 PMRaed Ghazal
09/16/2024, 12:44 PM