From feaeb275e4002505d5f2e333a37b8b3875bd3d5b Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 30 Apr 2024 18:37:29 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EB=A6=AC=EC=A6=88=20=EC=A0=84?= =?UTF-8?q?=EC=B2=B4=EB=B3=B4=EA=B8=B0=20-=20=EC=95=84=EC=9D=B4=ED=85=9C?= =?UTF-8?q?=20=ED=81=AC=EA=B8=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Content/Series/SeriesListAllViewModel.swift | 1 + SodaLive/Sources/UI/Component/SeriesListItemView.swift | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SodaLive/Sources/Content/Series/SeriesListAllViewModel.swift b/SodaLive/Sources/Content/Series/SeriesListAllViewModel.swift index f6b288a..f25afeb 100644 --- a/SodaLive/Sources/Content/Series/SeriesListAllViewModel.swift +++ b/SodaLive/Sources/Content/Series/SeriesListAllViewModel.swift @@ -29,6 +29,7 @@ final class SeriesListAllViewModel: ObservableObject { func getSeriesList() { if !isLoading && !isLast { + isLoading = true repository .getSeriesList(creatorId: creatorId, sortType: .NEWEST, page: page, size: pageSize) .sink { result in diff --git a/SodaLive/Sources/UI/Component/SeriesListItemView.swift b/SodaLive/Sources/UI/Component/SeriesListItemView.swift index 0d527b3..1ebcd1e 100644 --- a/SodaLive/Sources/UI/Component/SeriesListItemView.swift +++ b/SodaLive/Sources/UI/Component/SeriesListItemView.swift @@ -19,7 +19,6 @@ struct SeriesListItemView: View { KFImage(URL(string: item.coverImage)) .resizable() .scaledToFill() - .frame(width: 102, height: 144, alignment: .center) .cornerRadius(5) .clipped() @@ -56,18 +55,18 @@ struct SeriesListItemView: View { } .padding(3.3) } - .frame(width: 102, height: 144, alignment: .center) Text(item.title) .font(.custom(Font.medium.rawValue, size: 12)) .foregroundColor(Color.grayee) .lineLimit(2) + .frame(width: (screenSize().width - 60) / 3, alignment: .leading) Text(item.publishedDaysOfWeek) .font(.custom(Font.medium.rawValue, size: 11)) .foregroundColor(Color.gray77) } - .frame(width: 102) + .frame(width: (screenSize().width - 60) / 3) } }