Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ struct TopPerformersRow: View {
///
let imageURL: URL?

/// Image placeholder.
///
let placeHolder = UIImage.productPlaceholderImage

/// Item name or title.
///
let name: String
Expand All @@ -92,6 +96,7 @@ struct TopPerformersRow: View {
AdaptiveStack(horizontalAlignment: .leading, verticalAlignment: .top) {
// Image
KFImage(data.imageURL)
.placeholder { Image(uiImage: data.placeHolder).foregroundColor(Color(.listIcon)) }
.resizable()
.frame(width: imageWidth, height: imageWidth)
.cornerRadius(Layout.imageCornerRadius)
Expand Down