Retry loading thumbnails

This commit is contained in:
Arkadiusz Fal 2021-12-24 20:21:11 +01:00
parent 91fa4ea2ff
commit 19d57ff55c
3 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ struct CommentView: View {
.placeholder { .placeholder {
Rectangle().fill(Color("PlaceholderColor")) Rectangle().fill(Color("PlaceholderColor"))
} }
.retryOnAppear(false) .retryOnAppear(true)
.indicator(.activity) .indicator(.activity)
.mask(RoundedRectangle(cornerRadius: 60)) .mask(RoundedRectangle(cornerRadius: 60))
#if os(tvOS) #if os(tvOS)

View File

@ -410,7 +410,7 @@ struct VideoDetails: View {
.placeholder { .placeholder {
Rectangle().fill(Color("PlaceholderColor")) Rectangle().fill(Color("PlaceholderColor"))
} }
.retryOnAppear(false) .retryOnAppear(true)
.indicator(.activity) .indicator(.activity)
.clipShape(Circle()) .clipShape(Circle())
.frame(width: 45, height: 45, alignment: .leading) .frame(width: 45, height: 45, alignment: .leading)

View File

@ -272,7 +272,7 @@ struct VideoCell: View {
.placeholder { .placeholder {
Rectangle().fill(Color("PlaceholderColor")) Rectangle().fill(Color("PlaceholderColor"))
} }
.retryOnAppear(false) .retryOnAppear(true)
.onFailure { _ in .onFailure { _ in
thumbnails.insertUnloadable(url) thumbnails.insertUnloadable(url)
} }