Skip to content

Commit 2b1d3da

Browse files
committed
[#260] SongDetailView KFImage로 수정
1 parent 74546bf commit 2b1d3da

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

AGAMI/Sources/Presentation/View/Components/SongDetailView.swift

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77

88
import SwiftUI
9+
import Kingfisher
910

1011
struct SongDetailView: View {
1112
let detailSong: DetailSong?
@@ -37,13 +38,11 @@ struct SongDetailView: View {
3738
.padding(.horizontal, 0)
3839

3940
if let url = URL(string: detailSong?.albumCoverURL ?? "") {
40-
AsyncImage(url: url) { image in
41-
image.resizable()
42-
} placeholder: {
43-
ProgressView()
44-
}
45-
.frame(width: 155, height: 155)
46-
.clipShape(RoundedRectangle(cornerRadius: 4))
41+
KFImage(url)
42+
.resizable()
43+
.placeholder { ProgressView() }
44+
.frame(width: 155, height: 155)
45+
.clipShape(RoundedRectangle(cornerRadius: 4))
4746
} else {
4847
Image(systemName: "music.note")
4948
.resizable()

0 commit comments

Comments
 (0)