From 58e02a82bfa5d793ff3f8978aa7fb20524f3d5ec Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Tue, 3 Sep 2024 11:32:29 +0200 Subject: [PATCH] Fix snippets' color --- Views/BuildingBlocks/ArticleCell.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Views/BuildingBlocks/ArticleCell.swift b/Views/BuildingBlocks/ArticleCell.swift index a2a4ed164..1630ae3ef 100644 --- a/Views/BuildingBlocks/ArticleCell.swift +++ b/Views/BuildingBlocks/ArticleCell.swift @@ -42,7 +42,9 @@ struct ArticleCell: View { Spacer().frame(height: 2) Group { if let snippet = snippet { - Text(AttributedString(snippet)).lineLimit(4) + Text(AttributedString(snippet) + .settingAttributes(AttributeContainer([.foregroundColor: Color.primary]))) + .lineLimit(4) } }.font(.caption).multilineTextAlignment(.leading) Spacer(minLength: 0)