Add CachedAsyncImage

This commit is contained in:
Arkadiusz Fal
2022-09-01 18:51:59 +02:00
parent a5b9afe350
commit 50c77325f6
9 changed files with 56 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
import CachedAsyncImage
import Defaults
import Foundation
import SDWebImageSwiftUI
@@ -219,7 +220,7 @@ struct PlayerControls: View {
let url = thumbnails.best(video)
{
if #available(iOS 15, macOS 12, *) {
AsyncImage(url: url) { image in
CachedAsyncImage(url: url) { image in
image
.resizable()
} placeholder: {