remove bad cached image package

This commit is contained in:
Ethan Pippin 2022-01-08 17:20:16 -07:00
parent 622548e572
commit c81306fd47
3 changed files with 2 additions and 17 deletions

View File

@ -7,7 +7,6 @@
* Copyright 2021 Aiden Vigue & Jellyfin Contributors
*/
import CachedAsyncImage
import SwiftUI
struct ImageView: View {
@ -41,7 +40,7 @@ struct ImageView: View {
}
var body: some View {
CachedAsyncImage(url: source, urlCache: .imageCache, transaction: Transaction(animation: .easeInOut)) { phase in
AsyncImage(url: source, transaction: Transaction(animation: .easeInOut)) { phase in
switch phase {
case .success(let image):
image
@ -69,8 +68,3 @@ struct ImageView: View {
}
}
}
extension URLCache {
static let imageCache = URLCache(memoryCapacity: 512*1000*1000, diskCapacity: 10*1000*1000*1000)
}

View File

@ -28,7 +28,7 @@ struct ParallaxHeaderScrollView<Header: View, StaticOverlayView: View, Content:
}
var body: some View {
ScrollView {
ScrollView(showsIndicators: false) {
GeometryReader { proxy in
let yOffset = proxy.frame(in: .global).minY > 0 ? -proxy.frame(in: .global).minY : 0
header

View File

@ -100,15 +100,6 @@
"version": "1.4.2"
}
},
{
"package": "CachedAsyncImage",
"repositoryURL": "https://github.com/lorenzofiamingo/SwiftUI-CachedAsyncImage",
"state": {
"branch": "main",
"revision": "eb489a699be1f6e6c1a19fecdd6bfdc556474fd6",
"version": null
}
},
{
"package": "Introspect",
"repositoryURL": "https://github.com/siteline/SwiftUI-Introspect",