Closed ArtyomZhukov closed 3 years ago
//Png images are displayed Image( modifier = Modifier .padding(6.dp) .size(32.dp), painter = rememberCoilPainter(request = "https://cdn.coinranking.com/eKKejWkdo/sushiswap.png"), contentScale = ContentScale.Fit, contentDescription = null ) //Svg images are not displayed Image( modifier = Modifier .padding(6.dp) .size(32.dp), painter = rememberCoilPainter(request = "https://cdn.coinranking.com/HJzHboruM/atom.svg"), contentScale = ContentScale.Fit, contentDescription = null ) Image( modifier = Modifier .padding(6.dp) .size(32.dp), painter = rememberCoilPainter(request = "https://cdn.coinranking.com/HhSqAIEpK/kusama[1].svg"), contentScale = ContentScale.Fit, contentDescription = null )
I suggest that you go to the Coil or Glide docs and lookup SVG support. This isn’t an Accompanist issue.
Solution: https://coil-kt.github.io/coil/svgs/
To Reproduce
Environment: