Integrated the FakeLabel component into the FeedItemCell component in the Feed framework.

This commit is contained in:
Javier Cicchelli 2024-03-20 02:33:41 +01:00
parent 408e90d53f
commit ca50f5ff3a

View File

@ -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)
}
}