parent
70dae4f646
commit
feaeb275e4
|
@ -29,6 +29,7 @@ final class SeriesListAllViewModel: ObservableObject {
|
||||||
|
|
||||||
func getSeriesList() {
|
func getSeriesList() {
|
||||||
if !isLoading && !isLast {
|
if !isLoading && !isLast {
|
||||||
|
isLoading = true
|
||||||
repository
|
repository
|
||||||
.getSeriesList(creatorId: creatorId, sortType: .NEWEST, page: page, size: pageSize)
|
.getSeriesList(creatorId: creatorId, sortType: .NEWEST, page: page, size: pageSize)
|
||||||
.sink { result in
|
.sink { result in
|
||||||
|
|
|
@ -19,7 +19,6 @@ struct SeriesListItemView: View {
|
||||||
KFImage(URL(string: item.coverImage))
|
KFImage(URL(string: item.coverImage))
|
||||||
.resizable()
|
.resizable()
|
||||||
.scaledToFill()
|
.scaledToFill()
|
||||||
.frame(width: 102, height: 144, alignment: .center)
|
|
||||||
.cornerRadius(5)
|
.cornerRadius(5)
|
||||||
.clipped()
|
.clipped()
|
||||||
|
|
||||||
|
@ -56,18 +55,18 @@ struct SeriesListItemView: View {
|
||||||
}
|
}
|
||||||
.padding(3.3)
|
.padding(3.3)
|
||||||
}
|
}
|
||||||
.frame(width: 102, height: 144, alignment: .center)
|
|
||||||
|
|
||||||
Text(item.title)
|
Text(item.title)
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.foregroundColor(Color.grayee)
|
.foregroundColor(Color.grayee)
|
||||||
.lineLimit(2)
|
.lineLimit(2)
|
||||||
|
.frame(width: (screenSize().width - 60) / 3, alignment: .leading)
|
||||||
|
|
||||||
Text(item.publishedDaysOfWeek)
|
Text(item.publishedDaysOfWeek)
|
||||||
.font(.custom(Font.medium.rawValue, size: 11))
|
.font(.custom(Font.medium.rawValue, size: 11))
|
||||||
.foregroundColor(Color.gray77)
|
.foregroundColor(Color.gray77)
|
||||||
}
|
}
|
||||||
.frame(width: 102)
|
.frame(width: (screenSize().width - 60) / 3)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue