In a Compose Multiplatform project, is there a way...
# compose
g
In a Compose Multiplatform project, is there a way to have a different resources for the same name by platform? Thinking of the back button that looks different on Android and on iOS ? I found a solution but both resources are included in the commonResources folder:
Copy code
@Composable
expect fun platformBackArrowPainter(): Painter
Android
Copy code
@Composable
actual fun platformBackArrowPainter(): Painter = painterResource(Res.drawable.baseline_arrow_back_black_24)
iOS
Copy code
@Composable
actual fun platformBackArrowPainter(): Painter = painterResource(Res.drawable.baseline_arrow_back_ios_black_24)
It feels like overriding resources should work by folders in targets like on Android.... Got any better solution?