Use ImageManager of SDWebImageSwiftUI

This commit is contained in:
Arkadiusz Fal
2022-12-11 00:51:21 +01:00
parent 92999118fd
commit 7ba743afbc
4 changed files with 47 additions and 14 deletions

View File

@@ -421,18 +421,7 @@ struct VideoCell: View {
private var thumbnailImage: some View {
Group {
let url = thumbnails.best(video)
WebImage(url: url, options: [.lowPriority])
.resizable()
.placeholder {
Rectangle().foregroundColor(Color("PlaceholderColor"))
}
.retryOnAppear(true)
.onFailure { _ in
guard let url else { return }
thumbnails.insertUnloadable(url)
}
ThumbnailView(url: thumbnails.best(video))
#if os(tvOS)
.frame(minHeight: 320)