feat: 커뮤니티 전체보기
- gif 재생 되도록 추가
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user