Skip to content

Commit

Permalink
[#260] SongDetailView KFImage로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
00yhsp committed Dec 9, 2024
1 parent 74546bf commit 2b1d3da
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions AGAMI/Sources/Presentation/View/Components/SongDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import SwiftUI
import Kingfisher

struct SongDetailView: View {
let detailSong: DetailSong?
Expand Down Expand Up @@ -37,13 +38,11 @@ struct SongDetailView: View {
.padding(.horizontal, 0)

if let url = URL(string: detailSong?.albumCoverURL ?? "") {
AsyncImage(url: url) { image in
image.resizable()
} placeholder: {
ProgressView()
}
.frame(width: 155, height: 155)
.clipShape(RoundedRectangle(cornerRadius: 4))
KFImage(url)
.resizable()
.placeholder { ProgressView() }
.frame(width: 155, height: 155)
.clipShape(RoundedRectangle(cornerRadius: 4))
} else {
Image(systemName: "music.note")
.resizable()
Expand Down

0 comments on commit 2b1d3da

Please sign in to comment.