Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let package = Package(
name: "TjekSDK",
defaultLocalization: "en",
platforms: [
.iOS(.v12),
.iOS(.v13),
.watchOS(.v6),
.macOS(.v10_14),
.tvOS(.v12)
Expand All @@ -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: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down