feat(creator-community): 이미지 표시되지 않던 버그 수정

- 프로필 이미지 - DownsampledKFImage. 적용
- 게시물 이미지 - AnimatedImage -> WebImage로 변경
This commit is contained in:
Yu Sung
2025-10-23 19:48:32 +09:00
parent 43d73058d6
commit 127f7c75f3
3 changed files with 21 additions and 35 deletions

View File

@@ -27,16 +27,10 @@ struct CreatorCommunityCommentItemView: View {
ZStack(alignment: .topTrailing) { ZStack(alignment: .topTrailing) {
VStack(alignment: .leading, spacing: 0) { VStack(alignment: .leading, spacing: 0) {
HStack(spacing: 6.7) { HStack(spacing: 6.7) {
KFImage(URL(string: commentItem.profileUrl)) DownsampledKFImage(
.cancelOnDisappear(true) url: URL(string: commentItem.profileUrl),
.downsampling( size: CGSize(width: 40, height: 40)
size: CGSize(
width: 40,
height: 40
) )
)
.resizable()
.frame(width: 40, height: 40)
.clipShape(Circle()) .clipShape(Circle())
.onTapGesture { .onTapGesture {
if UserDefaults.int(forKey: .userId) != commentItem.writerId { if UserDefaults.int(forKey: .userId) != commentItem.writerId {

View File

@@ -77,11 +77,10 @@ struct CreatorCommunityCommentListView: View {
} }
HStack(spacing: 8) { HStack(spacing: 8) {
KFImage(URL(string: UserDefaults.string(forKey: .profileImage))) DownsampledKFImage(
.cancelOnDisappear(true) url: URL(string: UserDefaults.string(forKey: .profileImage)),
.downsampling(size: CGSize(width: 33.3, height: 33.3)) size: CGSize(width: 33.3, height: 33.3)
.resizable() )
.frame(width: 33.3, height: 33.3)
.clipShape(Circle()) .clipShape(Circle())
HStack(spacing: 0) { HStack(spacing: 0) {

View File

@@ -47,16 +47,10 @@ struct CreatorCommunityAllItemView: View {
var body: some View { var body: some View {
VStack(spacing: 13.3) { VStack(spacing: 13.3) {
HStack(spacing: 0) { HStack(spacing: 0) {
KFImage(URL(string: item.creatorProfileUrl)) DownsampledKFImage(
.cancelOnDisappear(true) url: URL(string: item.creatorProfileUrl),
.downsampling( size: CGSize(width: 40,height: 40)
size: CGSize(
width: 40,
height: 40
) )
)
.resizable()
.frame(width: 40, height: 40)
.clipShape(Circle()) .clipShape(Circle())
VStack(alignment: .leading, spacing: 3) { VStack(alignment: .leading, spacing: 3) {
@@ -100,10 +94,9 @@ struct CreatorCommunityAllItemView: View {
if item.price <= 0 || item.existOrdered { if item.price <= 0 || item.existOrdered {
if let imageUrl = item.imageUrl { if let imageUrl = item.imageUrl {
ZStack { ZStack {
AnimatedImage(url: URL(string: imageUrl)) WebImage(url: URL(string: imageUrl))
.resizable() .resizable()
.aspectRatio(contentMode: .fit) .scaledToFit()
.frame(maxWidth: .infinity)
.clipped() .clipped()
if let audioUrl = item.audioUrl { if let audioUrl = item.audioUrl {