diff --git a/Package.swift b/Package.swift index a0af956..aff6dd3 100644 --- a/Package.swift +++ b/Package.swift @@ -5,7 +5,7 @@ let package = Package( name: "TjekSDK", defaultLocalization: "en", platforms: [ - .iOS(.v12), + .iOS(.v13), .watchOS(.v6), .macOS(.v10_14), .tvOS(.v12) @@ -19,7 +19,7 @@ let package = Package( .package(name: "Incito", url: "https://github.com/tjek/incito-ios.git", from: "1.0.3"), .package(name: "Future", url: "https://github.com/tjek/swift-future.git", from: "0.5.0"), .package(name: "Verso", url: "https://github.com/tjek/verso-ios.git", from: "1.0.6"), - .package(name: "Kingfisher", url: "https://github.com/onevcat/Kingfisher.git", from: "7.0.0"), + .package(name: "Kingfisher", url: "https://github.com/onevcat/Kingfisher.git", from: "8.0.0"), .package(name: "Valet", url: "https://github.com/square/Valet.git", from: "4.1.1") ], targets: [ diff --git a/Sources/TjekPublicationViewer/PagedPublication/PagedPublicationView+ImageLoader.swift b/Sources/TjekPublicationViewer/PagedPublication/PagedPublicationView+ImageLoader.swift index 5a00d4b..56fa691 100644 --- a/Sources/TjekPublicationViewer/PagedPublication/PagedPublicationView+ImageLoader.swift +++ b/Sources/TjekPublicationViewer/PagedPublication/PagedPublicationView+ImageLoader.swift @@ -6,6 +6,7 @@ import UIKit /// The object that knows how to load/cache the page images from a URL /// Loosely based on `Kingfisher` interface +@MainActor public protocol PagedPublicationViewImageLoader: AnyObject { func loadImage(in imageView: UIImageView, url: URL, transition: (fadeDuration: TimeInterval, evenWhenCached: Bool), completion: @escaping ((Result<(image: UIImage, fromCache: Bool), Error>, URL) -> Void)) func cancelImageLoad(for imageView: UIImageView)