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 {
Rectangle().fill(Color("PlaceholderColor"))
}
.retryOnAppear(false)
.retryOnAppear(true)
.indicator(.activity)
.mask(RoundedRectangle(cornerRadius: 60))
#if os(tvOS)

View File

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

View File

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