From 1e1b97e2d4c8741d7570c2da273da0866c843550 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Wed, 27 Sep 2023 22:17:47 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=88=EB=A1=9C=EC=9A=B4=20=EC=BD=98?= =?UTF-8?q?=ED=85=90=EC=B8=A0=20=EC=A0=84=EC=B2=B4=EB=B3=B4=EA=B8=B0,=20?= =?UTF-8?q?=ED=81=90=EB=A0=88=EC=9D=B4=EC=85=98=20=EC=A0=84=EC=B2=B4?= =?UTF-8?q?=EB=B3=B4=EA=B8=B0=20-=20grid=20item=20alignment=20top=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Content/All/ContentNewAllItemView.swift | 14 ++++++-------- .../Sources/Content/All/ContentNewAllView.swift | 4 ++-- .../Content/Curation/ContentCurationView.swift | 4 ++-- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/SodaLive/Sources/Content/All/ContentNewAllItemView.swift b/SodaLive/Sources/Content/All/ContentNewAllItemView.swift index bd6c24c..4ef7d25 100644 --- a/SodaLive/Sources/Content/All/ContentNewAllItemView.swift +++ b/SodaLive/Sources/Content/All/ContentNewAllItemView.swift @@ -16,13 +16,11 @@ struct ContentNewAllItemView: View { var body: some View { VStack(alignment: .leading, spacing: 8) { - ZStack(alignment: .topLeading) { - KFImage(URL(string: item.coverImageUrl)) - .resizable() - .scaledToFill() - .frame(width: width, height: width, alignment: .top) - .cornerRadius(2.7) - } + KFImage(URL(string: item.coverImageUrl)) + .resizable() + .scaledToFill() + .frame(width: width, height: width, alignment: .top) + .cornerRadius(2.7) Text(item.title) .font(.custom(Font.medium.rawValue, size: 13.3)) @@ -47,7 +45,7 @@ struct ContentNewAllItemView: View { } .padding(.bottom, 10) } - .frame(width: width, alignment: .leading) + .frame(width: width) .onTapGesture { AppState.shared.setAppStep(step: .contentDetail(contentId: item.contentId)) } .onAppear { width = (screenSize().width - 40) / 2 diff --git a/SodaLive/Sources/Content/All/ContentNewAllView.swift b/SodaLive/Sources/Content/All/ContentNewAllView.swift index 5d5cc0c..376528a 100644 --- a/SodaLive/Sources/Content/All/ContentNewAllView.swift +++ b/SodaLive/Sources/Content/All/ContentNewAllView.swift @@ -12,8 +12,8 @@ struct ContentNewAllView: View { @StateObject var viewModel = ContentNewAllViewModel() let columns = [ - GridItem(.flexible()), - GridItem(.flexible()) + GridItem(.flexible(), alignment: .top), + GridItem(.flexible(), alignment: .top) ] var body: some View { diff --git a/SodaLive/Sources/Content/Curation/ContentCurationView.swift b/SodaLive/Sources/Content/Curation/ContentCurationView.swift index 8a4d2fd..735d10a 100644 --- a/SodaLive/Sources/Content/Curation/ContentCurationView.swift +++ b/SodaLive/Sources/Content/Curation/ContentCurationView.swift @@ -15,8 +15,8 @@ struct ContentCurationView: View { let curationId: Int let columns = [ - GridItem(.flexible()), - GridItem(.flexible()) + GridItem(.flexible(), alignment: .top), + GridItem(.flexible(), alignment: .top) ] var body: some View {