We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74546bf commit 2b1d3daCopy full SHA for 2b1d3da
AGAMI/Sources/Presentation/View/Components/SongDetailView.swift
@@ -6,6 +6,7 @@
6
//
7
8
import SwiftUI
9
+import Kingfisher
10
11
struct SongDetailView: View {
12
let detailSong: DetailSong?
@@ -37,13 +38,11 @@ struct SongDetailView: View {
37
38
.padding(.horizontal, 0)
39
40
if let url = URL(string: detailSong?.albumCoverURL ?? "") {
- AsyncImage(url: url) { image in
41
- image.resizable()
42
- } placeholder: {
43
- ProgressView()
44
- }
45
- .frame(width: 155, height: 155)
46
- .clipShape(RoundedRectangle(cornerRadius: 4))
+ KFImage(url)
+ .resizable()
+ .placeholder { ProgressView() }
+ .frame(width: 155, height: 155)
+ .clipShape(RoundedRectangle(cornerRadius: 4))
47
} else {
48
Image(systemName: "music.note")
49
.resizable()
0 commit comments