Better handling of images failing to load in the feed

This commit is contained in:
Jackson Harper 2022-12-13 18:36:56 +08:00
parent 97c714dbf2
commit 3f7aeb3955

View file

@ -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)
}