[Framework] Feed item view in the Feed framework #10
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user