From 153eff24018691a5e938ebd119ecc4d597b1fcfa Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 14 Jul 2025 20:05:52 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A9=94=EC=9D=B8=20=ED=99=88=20-=20?= =?UTF-8?q?=EC=B6=94=EC=B2=9C=20=EC=B1=84=EB=84=90=EC=9D=98=20=ED=81=AC?= =?UTF-8?q?=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0,=20=EC=8B=9C=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=EC=95=84=EC=9D=B4=ED=85=9C=20-=20=ED=84=B0?= =?UTF-8?q?=EC=B9=98=EC=8B=9C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=EC=9D=B4=20?= =?UTF-8?q?=EB=90=98=EC=96=B4=20=EC=9E=88=EC=A7=80=20=EC=95=8A=EC=9C=BC?= =?UTF-8?q?=EB=A9=B4=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Content/Series/SeriesItemView.swift | 19 ++++++++++--------- .../RecommendChannelItemView.swift | 8 +++++++- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/SodaLive/Sources/Content/Series/SeriesItemView.swift b/SodaLive/Sources/Content/Series/SeriesItemView.swift index 584f385..34ce975 100644 --- a/SodaLive/Sources/Content/Series/SeriesItemView.swift +++ b/SodaLive/Sources/Content/Series/SeriesItemView.swift @@ -24,15 +24,6 @@ struct SeriesItemView: View { .frame(width: 168, height: 238, alignment: .center) .cornerRadius(16) .clipped() - .onTapGesture { - if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { - AppState.shared - .setAppStep(step: .seriesDetail(seriesId: item.seriesId)) - } else { - AppState.shared - .setAppStep(step: .login) - } - } VStack(alignment: .leading, spacing: 0) { if !item.isComplete && item.isNew { @@ -107,6 +98,16 @@ struct SeriesItemView: View { .padding(.horizontal, 8) } .frame(width: 168) + .contentShape(Rectangle()) + .onTapGesture { + if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { + AppState.shared + .setAppStep(step: .seriesDetail(seriesId: item.seriesId)) + } else { + AppState.shared + .setAppStep(step: .login) + } + } } } diff --git a/SodaLive/Sources/Home/RecommendChannel/RecommendChannelItemView.swift b/SodaLive/Sources/Home/RecommendChannel/RecommendChannelItemView.swift index 65fb3da..1c29811 100644 --- a/SodaLive/Sources/Home/RecommendChannel/RecommendChannelItemView.swift +++ b/SodaLive/Sources/Home/RecommendChannel/RecommendChannelItemView.swift @@ -40,7 +40,13 @@ struct RecommendChannelItemView: View { } } .onTapGesture { - AppState.shared.setAppStep(step: .creatorDetail(userId: item.channelId)) + if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { + AppState.shared + .setAppStep(step: .creatorDetail(userId: item.channelId)) + } else { + AppState.shared + .setAppStep(step: .login) + } } ForEach(0..