Integrated the FakeLabel component into the FeedItemCell component in the Feed framework.
This commit is contained in:
parent
408e90d53f
commit
ca50f5ff3a
@ -25,15 +25,10 @@ struct FeedItemCell: View {
|
|||||||
alignment: .leading,
|
alignment: .leading,
|
||||||
spacing: 16
|
spacing: 16
|
||||||
) {
|
) {
|
||||||
HStack(
|
FakeLabel(
|
||||||
alignment: .bottom,
|
systemIcon: .Icon.person,
|
||||||
spacing: 8
|
title: item.author
|
||||||
) {
|
)
|
||||||
Image.Icon.person
|
|
||||||
|
|
||||||
Text(item.author)
|
|
||||||
.font(.body)
|
|
||||||
}
|
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
|
|
||||||
VStack(spacing: 8) {
|
VStack(spacing: 8) {
|
||||||
@ -58,15 +53,10 @@ struct FeedItemCell: View {
|
|||||||
of: .Rating.total
|
of: .Rating.total
|
||||||
)
|
)
|
||||||
|
|
||||||
HStack(
|
FakeLabel(
|
||||||
alignment: .center,
|
systemIcon: .Icon.info,
|
||||||
spacing: 8
|
title: item.rating.appVersion
|
||||||
) {
|
)
|
||||||
Image.Icon.info
|
|
||||||
|
|
||||||
Text(item.rating.appVersion)
|
|
||||||
.font(.body)
|
|
||||||
}
|
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user