File tree Expand file tree Collapse file tree 3 files changed +16
-22
lines changed Expand file tree Collapse file tree 3 files changed +16
-22
lines changed Original file line number Diff line number Diff line change 1
- // swift-tools-version:5.3
1
+ // swift-tools-version:5.6
2
2
import PackageDescription
3
3
4
4
let package = Package (
5
5
name: " RxNuke " ,
6
6
platforms: [
7
- . macOS( . v10_13 ) ,
8
- . iOS( . v11 ) ,
9
- . tvOS( . v11 ) ,
10
- . watchOS( . v4 )
7
+ . macOS( . v10_15 ) ,
8
+ . iOS( . v13 ) ,
9
+ . tvOS( . v13 ) ,
10
+ . watchOS( . v6 )
11
11
] ,
12
12
products: [
13
13
. library( name: " RxNuke " , targets: [ " RxNuke " ] ) ,
14
14
] ,
15
15
dependencies: [
16
16
. package (
17
17
url: " https://github.com/kean/Nuke.git " ,
18
- from: " 10 .0.0"
18
+ from: " 11 .0.0"
19
19
) ,
20
20
. package (
21
21
url: " https://github.com/ReactiveX/RxSwift.git " ,
Original file line number Diff line number Diff line change @@ -158,11 +158,10 @@ final class ImageCell: UICollectionViewCell {
158
158
< a name= " h_requirements" ></ a>
159
159
# Requirements
160
160
161
- | RxNuke | Swift | Xcode | Platforms |
162
- |------------------|-----------------------|----------------------|----------------------------------------------------|
163
- | RxNuke 3.0 | Swift 5.3 | Xcode 12.0 | iOS 11.0 / watchOS 4.0 / macOS 10.13 / tvOS 11.0 |
164
- | RxNuke 1.0 | Swift 5.1 | Xcode 11.0 | iOS 11.0 / watchOS 4.0 / macOS 10.13 / tvOS 11.0 |
165
- | RxNuke 0.8 | Swift 4.2 – 5.0 | Xcode 10.1 – 10.2 | iOS 10.0 / watchOS 3.0 / macOS 10.12 / tvOS 10.0 |
161
+ | RxNuke | Swift | Xcode | Platforms |
162
+ |-------------|------------------|--------------------|---------------------------------------------------|
163
+ | RxNuke 4.0 | Swift 5.6 | Xcode 13.3 | iOS 13.0 / watchOS 6.0 / macOS 10.15 / tvOS 13.0 |
164
+ | RxNuke 3.0 | Swift 5.3 | Xcode 12.0 | iOS 11.0 / watchOS 4.0 / macOS 10.13 / tvOS 11.0 |
166
165
167
166
# License
168
167
Original file line number Diff line number Diff line change 1
1
// The MIT License (MIT)
2
2
//
3
- // Copyright (c) 2017-2021 Alexander Grebenyuk (github.com/kean).
3
+ // Copyright (c) 2017-2022 Alexander Grebenyuk (github.com/kean).
4
4
5
5
import Nuke
6
6
import RxSwift
7
-
8
- #if !os(macOS)
9
- import UIKit
10
- #else
11
- import AppKit
12
- #endif
7
+ import Foundation
13
8
14
9
extension ImagePipeline : ReactiveCompatible { }
15
10
16
- public extension Reactive where Base: ImagePipeline {
11
+ extension Reactive where Base: ImagePipeline {
17
12
/// Loads an image with a given url. Emits the value synchronously if the
18
13
/// image was found in memory cache.
19
- func loadImage( with url: URL ) -> Single < ImageResponse > {
14
+ public func loadImage( with url: URL ) -> Single < ImageResponse > {
20
15
return self . loadImage ( with: ImageRequest ( url: url) )
21
16
}
22
17
23
18
/// Loads an image with a given request. Emits the value synchronously if the
24
19
/// image was found in memory cache.
25
- func loadImage( with request: ImageRequest ) -> Single < ImageResponse > {
20
+ public func loadImage( with request: ImageRequest ) -> Single < ImageResponse > {
26
21
return Single < ImageResponse > . create { single in
27
22
if let image = self . base. cache [ request] {
28
- single ( . success( ImageResponse ( container: image) ) ) // return synchronously
23
+ single ( . success( ImageResponse ( container: image, request : request ) ) ) // return synchronously
29
24
return Disposables . create ( ) // nop
30
25
} else {
31
26
let task = self . base. loadImage ( with: request, completion: { result in
You can’t perform that action at this time.
0 commit comments