From e3a6cd5b19e263cab8917c7c40c676d89bdb7306 Mon Sep 17 00:00:00 2001 From: Dan Fabulich Date: Mon, 18 May 2026 12:27:15 -0700 Subject: [PATCH] Repro infinite recomposition with `.foregroundStyle(LinearGradient())` Reproduces https://github.com/skiptools/skip-ui/issues/437 --- Sources/Showcase/TextPlayground.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/Showcase/TextPlayground.swift b/Sources/Showcase/TextPlayground.swift index d16fc86..8186d12 100644 --- a/Sources/Showcase/TextPlayground.swift +++ b/Sources/Showcase/TextPlayground.swift @@ -40,6 +40,13 @@ struct TextPlayground: View { Text("Font.caption").font(.caption) Text("Font.caption2").font(.caption2) + Text("Rainbow text") + .foregroundStyle(LinearGradient( + colors: [.red, .orange, .yellow, .green, .blue, .purple], + startPoint: .leading, + endPoint: .trailing) + ) + Divider() Text("Markdown\nspanning multiple\nlines")