From c0288b5eb812aeb4ba5c2045bad663cd29b0ea33 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Wed, 4 Feb 2026 11:26:04 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EC=B1=84=EB=84=90=20-=20=ED=9B=84=EC=9B=90=EB=9E=AD?= =?UTF-8?q?=ED=82=B9=EC=9D=B4=20=EC=97=86=EC=96=B4=EB=8F=84=20=EB=82=B4=20?= =?UTF-8?q?=EC=B1=84=EB=84=90=EC=97=90=EC=84=9C=EB=8A=94=20=ED=9B=84?= =?UTF-8?q?=EC=9B=90=EB=9E=AD=ED=82=B9=20=EC=98=81=EC=97=AD=EC=9D=B4=20?= =?UTF-8?q?=EB=B3=B4=EC=9D=B4=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95=20-?= =?UTF-8?q?=20=EC=B1=84=EB=84=90=20=EC=A3=BC=EC=9D=B8=EC=9D=B4=20=EC=95=84?= =?UTF-8?q?=EB=8B=8C=20=EB=8B=A4=EB=A5=B8=20=EC=9C=A0=EC=A0=80=EB=8A=94=20?= =?UTF-8?q?=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20=EA=B2=8C=EC=8B=9C?= =?UTF-8?q?=EB=AC=BC=EC=9D=B4=20=EC=97=86=EC=9C=BC=EB=A9=B4=20=EC=BB=A4?= =?UTF-8?q?=EB=AE=A4=EB=8B=88=ED=8B=B0=20=EC=98=81=EC=97=AD=EC=9D=B4=20?= =?UTF-8?q?=EB=B3=B4=EC=9D=B4=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Explorer/Profile/UserProfileView.swift | 132 +++++++++--------- 1 file changed, 67 insertions(+), 65 deletions(-) diff --git a/SodaLive/Sources/Explorer/Profile/UserProfileView.swift b/SodaLive/Sources/Explorer/Profile/UserProfileView.swift index 4bf2c50..581d7f5 100644 --- a/SodaLive/Sources/Explorer/Profile/UserProfileView.swift +++ b/SodaLive/Sources/Explorer/Profile/UserProfileView.swift @@ -256,74 +256,76 @@ struct UserProfileView: View { .padding(.horizontal, 24) } - VStack(alignment: .leading, spacing: 14) { - HStack(spacing: 0) { - Text(I18n.MemberChannel.communityHeader) - .appFont(size: 26, weight: .bold) - .foregroundColor(Color.white) - .padding(.horizontal, 24) - - Spacer() - } - if viewModel.communityPostList.count > 0 { - ScrollView(.horizontal, showsIndicators: false) { - LazyHStack(spacing: 14) { - if UserDefaults.int(forKey: .userId) == creatorProfile.creator.creatorId { - CreatorCommunityWriteItemView() - .onTapGesture { - AppState.shared.setAppStep( - step: .creatorCommunityWrite( - onSuccess: creatorCommunityWriteSuccess - ) - ) - } - } - - ForEach(0.. 0 { + VStack(alignment: .leading, spacing: 14) { + HStack(spacing: 0) { + Text(I18n.MemberChannel.communityHeader) + .appFont(size: 26, weight: .bold) + .foregroundColor(Color.white) + .padding(.horizontal, 24) + + Spacer() } - } else { - if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) { - CreatorCommunityNoPostsItemView( - onSuccess: creatorCommunityWriteSuccess - ) - .padding(.horizontal, 24) + if viewModel.communityPostList.count > 0 { + ScrollView(.horizontal, showsIndicators: false) { + LazyHStack(spacing: 14) { + if UserDefaults.int(forKey: .userId) == creatorProfile.creator.creatorId { + CreatorCommunityWriteItemView() + .onTapGesture { + AppState.shared.setAppStep( + step: .creatorCommunityWrite( + onSuccess: creatorCommunityWriteSuccess + ) + ) + } + } + + ForEach(0.. 0 { + if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) || creatorProfile.userDonationRanking.count > 0 { UserProfileDonationView(userId: userId, donationRankingResponse: creatorProfile.userDonationRanking) }