parent
523295648b
commit
602ee790eb
|
@ -24,7 +24,6 @@ struct SeriesListAllView: View {
|
||||||
ForEach(0..<viewModel.seriesList.count, id: \.self) { index in
|
ForEach(0..<viewModel.seriesList.count, id: \.self) { index in
|
||||||
let item = viewModel.seriesList[index]
|
let item = viewModel.seriesList[index]
|
||||||
SeriesListItemView(itemWidth: (screenSize().width - 40) / 3, item: item)
|
SeriesListItemView(itemWidth: (screenSize().width - 40) / 3, item: item)
|
||||||
.alignmentGuide(.top) { _ in 0 }
|
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
AppState.shared
|
AppState.shared
|
||||||
|
|
|
@ -15,7 +15,6 @@ struct SeriesListItemView: View {
|
||||||
let item: SeriesListItem
|
let item: SeriesListItem
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
HStack(alignment: .top) {
|
|
||||||
VStack(alignment: .leading, spacing: 8) {
|
VStack(alignment: .leading, spacing: 8) {
|
||||||
ZStack {
|
ZStack {
|
||||||
KFImage(URL(string: item.coverImage))
|
KFImage(URL(string: item.coverImage))
|
||||||
|
@ -52,6 +51,7 @@ struct SeriesListItemView: View {
|
||||||
}
|
}
|
||||||
.padding(3.3)
|
.padding(3.3)
|
||||||
}
|
}
|
||||||
|
.frame(width: itemWidth, height: itemWidth * 432 / 306)
|
||||||
|
|
||||||
Text(item.title)
|
Text(item.title)
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
|
@ -64,8 +64,6 @@ struct SeriesListItemView: View {
|
||||||
.foregroundColor(Color.gray77)
|
.foregroundColor(Color.gray77)
|
||||||
.frame(width: itemWidth, alignment: .leading)
|
.frame(width: itemWidth, alignment: .leading)
|
||||||
}
|
}
|
||||||
.frame(width: itemWidth)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue