From 3f7aeb3955048721605a3af67482836e7559f018 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 13 Dec 2022 18:36:56 +0800 Subject: [PATCH] Better handling of images failing to load in the feed --- .../OmnivoreKit/Sources/Views/FeedItem/HomeFeedCardView.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apple/OmnivoreKit/Sources/Views/FeedItem/HomeFeedCardView.swift b/apple/OmnivoreKit/Sources/Views/FeedItem/HomeFeedCardView.swift index 072eb94bd..6e5b0e78b 100644 --- a/apple/OmnivoreKit/Sources/Views/FeedItem/HomeFeedCardView.swift +++ b/apple/OmnivoreKit/Sources/Views/FeedItem/HomeFeedCardView.swift @@ -57,10 +57,8 @@ public struct FeedCard: View { .aspectRatio(contentMode: .fill) .frame(width: 80, height: 80) .cornerRadius(6) - } else if phase.error != nil { - EmptyView().frame(width: 80, height: 80, alignment: .top) } else { - Color.appButtonBackground + Color.systemBackground .frame(width: 80, height: 80) .cornerRadius(6) }