From ca50f5ff3af88fbb50914343886a5c75daeb1335 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Wed, 20 Mar 2024 02:33:41 +0100 Subject: [PATCH] Integrated the FakeLabel component into the FeedItemCell component in the Feed framework. --- .../UI/Components/Cells/FeedItemCell.swift | 26 ++++++------------- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/Frameworks/Feed/Bundle/Sources/UI/Components/Cells/FeedItemCell.swift b/Frameworks/Feed/Bundle/Sources/UI/Components/Cells/FeedItemCell.swift index 7b37001..4b5cef9 100644 --- a/Frameworks/Feed/Bundle/Sources/UI/Components/Cells/FeedItemCell.swift +++ b/Frameworks/Feed/Bundle/Sources/UI/Components/Cells/FeedItemCell.swift @@ -25,15 +25,10 @@ struct FeedItemCell: View { alignment: .leading, spacing: 16 ) { - HStack( - alignment: .bottom, - spacing: 8 - ) { - Image.Icon.person - - Text(item.author) - .font(.body) - } + FakeLabel( + systemIcon: .Icon.person, + title: item.author + ) .foregroundColor(.secondary) VStack(spacing: 8) { @@ -58,15 +53,10 @@ struct FeedItemCell: View { of: .Rating.total ) - HStack( - alignment: .center, - spacing: 8 - ) { - Image.Icon.info - - Text(item.rating.appVersion) - .font(.body) - } + FakeLabel( + systemIcon: .Icon.info, + title: item.rating.appVersion + ) .foregroundColor(.secondary) } }