From 127f7c75f3e0f3b6819ee93eee972ec891bf8dab Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 23 Oct 2025 19:48:32 +0900 Subject: [PATCH] =?UTF-8?q?feat(creator-community):=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=ED=91=9C=EC=8B=9C=EB=90=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8D=98=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 프로필 이미지 - DownsampledKFImage. 적용 - 게시물 이미지 - AnimatedImage -> WebImage로 변경 --- .../CreatorCommunityCommentItemView.swift | 24 +++++++------------ .../CreatorCommunityCommentListView.swift | 11 ++++----- .../All/CreatorCommunityAllItemView.swift | 21 ++++++---------- 3 files changed, 21 insertions(+), 35 deletions(-) diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift index 4b81bc4..943a75a 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentItemView.swift @@ -27,22 +27,16 @@ struct CreatorCommunityCommentItemView: View { ZStack(alignment: .topTrailing) { VStack(alignment: .leading, spacing: 0) { HStack(spacing: 6.7) { - KFImage(URL(string: commentItem.profileUrl)) - .cancelOnDisappear(true) - .downsampling( - size: CGSize( - width: 40, - height: 40 - ) - ) - .resizable() - .frame(width: 40, height: 40) - .clipShape(Circle()) - .onTapGesture { - if UserDefaults.int(forKey: .userId) != commentItem.writerId { - onClickProfile(commentItem.writerId) - } + DownsampledKFImage( + url: URL(string: commentItem.profileUrl), + size: CGSize(width: 40, height: 40) + ) + .clipShape(Circle()) + .onTapGesture { + if UserDefaults.int(forKey: .userId) != commentItem.writerId { + onClickProfile(commentItem.writerId) } + } VStack(alignment: .leading, spacing: 0) { HStack(spacing: 6.7) { diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift index 508f081..6856bc4 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/Comment/CreatorCommunityCommentListView.swift @@ -77,12 +77,11 @@ struct CreatorCommunityCommentListView: View { } HStack(spacing: 8) { - KFImage(URL(string: UserDefaults.string(forKey: .profileImage))) - .cancelOnDisappear(true) - .downsampling(size: CGSize(width: 33.3, height: 33.3)) - .resizable() - .frame(width: 33.3, height: 33.3) - .clipShape(Circle()) + DownsampledKFImage( + url: URL(string: UserDefaults.string(forKey: .profileImage)), + size: CGSize(width: 33.3, height: 33.3) + ) + .clipShape(Circle()) HStack(spacing: 0) { TextField("댓글을 입력해 보세요.", text: $viewModel.comment) diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift index f0e62fe..5d65ac9 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift @@ -47,17 +47,11 @@ struct CreatorCommunityAllItemView: View { var body: some View { VStack(spacing: 13.3) { HStack(spacing: 0) { - KFImage(URL(string: item.creatorProfileUrl)) - .cancelOnDisappear(true) - .downsampling( - size: CGSize( - width: 40, - height: 40 - ) - ) - .resizable() - .frame(width: 40, height: 40) - .clipShape(Circle()) + DownsampledKFImage( + url: URL(string: item.creatorProfileUrl), + size: CGSize(width: 40,height: 40) + ) + .clipShape(Circle()) VStack(alignment: .leading, spacing: 3) { Text(item.creatorNickname) @@ -100,10 +94,9 @@ struct CreatorCommunityAllItemView: View { if item.price <= 0 || item.existOrdered { if let imageUrl = item.imageUrl { ZStack { - AnimatedImage(url: URL(string: imageUrl)) + WebImage(url: URL(string: imageUrl)) .resizable() - .aspectRatio(contentMode: .fit) - .frame(maxWidth: .infinity) + .scaledToFit() .clipped() if let audioUrl = item.audioUrl {