mirror of
https://github.com/yattee/yattee.git
synced 2025-01-08 22:07:10 +00:00
Retry loading thumbnails
This commit is contained in:
parent
91fa4ea2ff
commit
19d57ff55c
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user