Closed gleb-skobinsky closed 3 months ago
Describe the bug Gradients in annotated strings are not rendered.
Affected platforms
Versions
To Reproduce Steps to reproduce the behavior:
@Composable @Preview fun App() { MaterialTheme { val annotatedString = remember { buildAnnotatedString { pushStyle(SpanStyle(fontSize = 56.sp)) withStyle(SpanStyle(brush = textGradient)) { append("Text with gradient") } withStyle(SpanStyle(color = Color.Black)) { append(", and without") } } } Box(Modifier.fillMaxSize(), Alignment.Center) { Text(annotatedString, textAlign = TextAlign.Center, lineHeight = 64.sp) } } }
On iOS the span with gradient is not visible:
Expected behavior Same rendering for all platforms.
You can reproduce the issue with this repo: https://github.com/gleb-skobinsky/BugReport
Reproduced on all skiko-based targets indeed.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug Gradients in annotated strings are not rendered.
Affected platforms
Versions
To Reproduce Steps to reproduce the behavior:
On iOS the span with gradient is not visible:
Expected behavior Same rendering for all platforms.
You can reproduce the issue with this repo: https://github.com/gleb-skobinsky/BugReport