compose-multiplatform
compose-multiplatform copied to clipboard
Some SVG files cannot be rendered correctly.
This SVG cannot be rendered correctly. But works well if I translate it to Android XML.

Image(
modifier = Modifier.size(93.dp, 24.dp),
painter = painterResource("logo_text.xml"),
contentDescription = null,
colorFilter = ColorFilter.tint(Color.White)
)
Please use English here, so other people also can understand discussion
I have the same problem. Seems the wrong the behaviour is when you use size modifier on a svg. Converting to xml format worked for me as well.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.