From 2283ea4b4497da4801f831a5048f059b83fb9787 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 7 Jul 2026 15:04:28 +0900 Subject: [PATCH] =?UTF-8?q?feat(creator):=20=EC=BB=A4=EB=AE=A4=EB=8B=88?= =?UTF-8?q?=ED=8B=B0=20=EB=8B=B5=EA=B8=80=20=EC=83=81=EC=84=B8=EB=A5=BC=20?= =?UTF-8?q?=EC=97=B0=EA=B2=B0=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CreatorCommunityCommentItemView.swift | 23 ++++++++++--------- .../CreatorCommunityCommentListView.swift | 14 +++++++++++ .../CreatorCommunityCommentReplyView.swift | 6 +++-- 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift index 59b7af00..e6962699 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift @@ -18,6 +18,7 @@ struct CreatorCommunityCommentItemView: View { let modifyComment: (Int, String) -> Void let onClickDelete: (Int) -> Void let onClickProfile: (Int) -> Void + let onTapReplyDetail: () -> Void @State var isShowPopupMenu: Bool = false @State var isModeModify: Bool = false @@ -110,19 +111,19 @@ struct CreatorCommunityCommentItemView: View { .fixedSize(horizontal: false, vertical: true) .lineSpacing(8) .padding(.top, 13.3) + .frame(maxWidth: .infinity, alignment: .leading) + .contentShape(Rectangle()) + .onTapGesture { + if isReplyComment == false { + onTapReplyDetail() + } + } if !isReplyComment { - NavigationLink( - destination: CreatorCommunityCommentReplyView( - creatorId: creatorId, - postId: postId, - parentComment: commentItem - ) - ) { - Text(commentItem.replyCount > 0 ? I18n.Explorer.replyCount(commentItem.replyCount) : I18n.Explorer.replyWrite) - .appFont(size: 13.3, weight: .medium) - .foregroundColor(Color.button) - } + Text(commentItem.replyCount > 0 ? I18n.Explorer.replyCount(commentItem.replyCount) : I18n.Explorer.replyWrite) + .appFont(size: 13.3, weight: .medium) + .foregroundColor(Color.button) + .onTapGesture(perform: onTapReplyDetail) } } } diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift index 6e5e66d3..003c4149 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift @@ -145,6 +145,20 @@ struct CreatorCommunityCommentListView: View { onClickProfile: { memberId = $0 isShowMemberProfilePopup = true + }, + onTapReplyDetail: { + isPresented = false + DispatchQueue.main.async { + AppState.shared.setAppStep( + step: .creatorChannelReplyDetail( + context: .community( + creatorId: creatorId, + postId: postId, + parentComment: comment + ) + ) + ) + } } ) .padding(.horizontal, 26.7) diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentReplyView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentReplyView.swift index f527e2ce..2a561bb4 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentReplyView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentReplyView.swift @@ -105,7 +105,8 @@ struct CreatorCommunityCommentReplyView: View { onClickProfile: { memberId = $0 isShowMemberProfilePopup = true - } + }, + onTapReplyDetail: {} ) .padding(.horizontal, 26.7) .padding(.bottom, 13.3) @@ -131,7 +132,8 @@ struct CreatorCommunityCommentReplyView: View { onClickProfile: { memberId = $0 isShowMemberProfilePopup = true - } + }, + onTapReplyDetail: {} ) .padding(.horizontal, 26.7) .padding(.leading, 13.3)