Is there auto mirroring for `Icons.Default.ArrowBa...
# compose
a
Is there auto mirroring for
Icons.Default.ArrowBack
icon to change its direction automatically when layout direction changed?
c
No not yet. For now a conditional statement will work. You can wrap that in your own Composable for reuse
a
Yah I ended up to this!
Copy code
@Composable
fun rightBackIconDirection() = if (LocalLayoutDirection.current == LayoutDirection.Rtl)
    Icons.Default.ArrowForward
else
    Icons.Default.ArrowBack
👍 1