From 2da8f417c4dacd75ee316851375aeff8c0c29c94 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Wed, 20 Mar 2024 01:34:54 +0100 Subject: [PATCH] Improved the overall layout of the FeedItemCell component in the Feed framework. --- .../UI/Components/Cells/FeedItemCell.swift | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Frameworks/Feed/Bundle/Sources/UI/Components/Cells/FeedItemCell.swift b/Frameworks/Feed/Bundle/Sources/UI/Components/Cells/FeedItemCell.swift index e37339c..7b37001 100644 --- a/Frameworks/Feed/Bundle/Sources/UI/Components/Cells/FeedItemCell.swift +++ b/Frameworks/Feed/Bundle/Sources/UI/Components/Cells/FeedItemCell.swift @@ -29,11 +29,12 @@ struct FeedItemCell: View { alignment: .bottom, spacing: 8 ) { - Image(systemName: "person.crop.circle") + Image.Icon.person Text(item.author) - .font(.subheadline) + .font(.body) } + .foregroundColor(.secondary) VStack(spacing: 8) { Text(item.title) @@ -48,24 +49,26 @@ struct FeedItemCell: View { } .multilineTextAlignment(.leading) - HStack(alignment: .bottom) { + HStack( + alignment: .center, + spacing: 32 + ) { StarRating( item.rating.stars, of: .Rating.total ) - - Spacer() HStack( - alignment: .bottom, - spacing: 4 + alignment: .center, + spacing: 8 ) { - Text(item.rating.appVersion) + Image.Icon.info - Image(systemName: "iphone.gen3.circle") + Text(item.rating.appVersion) + .font(.body) } + .foregroundColor(.secondary) } - .font(.subheadline) } .padding(.vertical, 8) }