diff --git a/Shared/Views/ImageView.swift b/Shared/Views/ImageView.swift index 460e77a5..636d9900 100644 --- a/Shared/Views/ImageView.swift +++ b/Shared/Views/ImageView.swift @@ -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) -} diff --git a/Shared/Views/ParallaxHeader.swift b/Shared/Views/ParallaxHeader.swift index d5624f74..d16fccea 100644 --- a/Shared/Views/ParallaxHeader.swift +++ b/Shared/Views/ParallaxHeader.swift @@ -28,7 +28,7 @@ struct ParallaxHeaderScrollView 0 ? -proxy.frame(in: .global).minY : 0 header diff --git a/Swiftfin.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Swiftfin.xcworkspace/xcshareddata/swiftpm/Package.resolved index cf80eed4..3ed0ea18 100644 --- a/Swiftfin.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Swiftfin.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -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",