feat: 커뮤니티 전체보기

- gif 재생 되도록 추가
This commit is contained in:
Yu Sung
2025-07-03 15:56:41 +09:00
parent 69c7fb4c0b
commit 419feeab6d

View File

@@ -7,6 +7,7 @@
import SwiftUI import SwiftUI
import Kingfisher import Kingfisher
import SDWebImageSwiftUI
struct CreatorCommunityAllItemView: View { struct CreatorCommunityAllItemView: View {
@@ -99,10 +100,11 @@ 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 {
KFImage(URL(string: imageUrl)) AnimatedImage(url: URL(string: imageUrl))
.resizable() .resizable()
.aspectRatio(contentMode: .fit)
.frame(maxWidth: .infinity) .frame(maxWidth: .infinity)
.scaledToFit() .clipped()
if let audioUrl = item.audioUrl { if let audioUrl = item.audioUrl {
Image(playManager.isPlaying && playManager.currentPlayingContentId == item.postId ? "btn_audio_content_pause" : "btn_audio_content_play") Image(playManager.isPlaying && playManager.currentPlayingContentId == item.postId ? "btn_audio_content_pause" : "btn_audio_content_play")