remove bad cached image package
This commit is contained in:
parent
622548e572
commit
c81306fd47
|
@ -7,7 +7,6 @@
|
||||||
* Copyright 2021 Aiden Vigue & Jellyfin Contributors
|
* Copyright 2021 Aiden Vigue & Jellyfin Contributors
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import CachedAsyncImage
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct ImageView: View {
|
struct ImageView: View {
|
||||||
|
@ -41,7 +40,7 @@ struct ImageView: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
var body: some 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 {
|
switch phase {
|
||||||
case .success(let image):
|
case .success(let image):
|
||||||
image
|
image
|
||||||
|
@ -69,8 +68,3 @@ struct ImageView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URLCache {
|
|
||||||
|
|
||||||
static let imageCache = URLCache(memoryCapacity: 512*1000*1000, diskCapacity: 10*1000*1000*1000)
|
|
||||||
}
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ struct ParallaxHeaderScrollView<Header: View, StaticOverlayView: View, Content:
|
||||||
}
|
}
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ScrollView {
|
ScrollView(showsIndicators: false) {
|
||||||
GeometryReader { proxy in
|
GeometryReader { proxy in
|
||||||
let yOffset = proxy.frame(in: .global).minY > 0 ? -proxy.frame(in: .global).minY : 0
|
let yOffset = proxy.frame(in: .global).minY > 0 ? -proxy.frame(in: .global).minY : 0
|
||||||
header
|
header
|
||||||
|
|
|
@ -100,15 +100,6 @@
|
||||||
"version": "1.4.2"
|
"version": "1.4.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"package": "CachedAsyncImage",
|
|
||||||
"repositoryURL": "https://github.com/lorenzofiamingo/SwiftUI-CachedAsyncImage",
|
|
||||||
"state": {
|
|
||||||
"branch": "main",
|
|
||||||
"revision": "eb489a699be1f6e6c1a19fecdd6bfdc556474fd6",
|
|
||||||
"version": null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"package": "Introspect",
|
"package": "Introspect",
|
||||||
"repositoryURL": "https://github.com/siteline/SwiftUI-Introspect",
|
"repositoryURL": "https://github.com/siteline/SwiftUI-Introspect",
|
||||||
|
|
Loading…
Reference in New Issue