mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Add CachedAsyncImage
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import CachedAsyncImage
|
||||
import CoreMedia
|
||||
import Foundation
|
||||
import SDWebImageSwiftUI
|
||||
@@ -73,7 +74,7 @@ struct VideoBanner: View {
|
||||
@ViewBuilder private var smallThumbnail: some View {
|
||||
let url = video?.thumbnailURL(quality: .medium)
|
||||
if #available(iOS 15, macOS 12, *) {
|
||||
AsyncImage(url: url) { image in
|
||||
CachedAsyncImage(url: url) { image in
|
||||
image
|
||||
.resizable()
|
||||
} placeholder: {
|
||||
|
@@ -1,3 +1,4 @@
|
||||
import CachedAsyncImage
|
||||
import CoreMedia
|
||||
import Defaults
|
||||
import SDWebImageSwiftUI
|
||||
@@ -422,7 +423,7 @@ struct VideoCell: View {
|
||||
Group {
|
||||
let url = thumbnails.best(video)
|
||||
if #available(iOS 15, macOS 12, *) {
|
||||
AsyncImage(url: url) { image in
|
||||
CachedAsyncImage(url: url) { image in
|
||||
image
|
||||
.resizable()
|
||||
} placeholder: {
|
||||
|
Reference in New Issue
Block a user