File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ extension ViewController {
67
67
guard let cell = tableView. dequeueReusableCellWithIdentifier (
68
68
FeedTableViewCell . reusableIdentifier) as? FeedTableViewCell else { return UITableViewCell ( ) }
69
69
70
- cell. generalImageView. setRemoteImage ( imaginaryArray [ indexPath. row] )
70
+ cell. generalImageView. setImage ( imaginaryArray [ indexPath. row] )
71
71
72
72
return cell
73
73
}
Original file line number Diff line number Diff line change 4
4
- SwiftyJSON
5
5
- Imaginary (0.1.0):
6
6
- Cache
7
- - SwiftyJSON (2.3.1 )
7
+ - SwiftyJSON (2.3.2 )
8
8
9
9
DEPENDENCIES:
10
10
- Cache (from `https://github.com/hyperoslo/Cache`)
@@ -26,6 +26,6 @@ SPEC CHECKSUMS:
26
26
Cache: 59ea9dbb71dfa1ba68a6efe295e907603b3066da
27
27
Fakery: 593389814fb7c42fe7f0801e76c8ae55b95505e7
28
28
Imaginary: feaea646440c68a9b6ed66a46597d548b9a44207
29
- SwiftyJSON: 592b53bee5ef3dd9b3bebc6b9cb7ee35426ae8c3
29
+ SwiftyJSON: 04ccea08915aa0109039157c7974cf0298da292a
30
30
31
31
COCOAPODS: 0.39.0
Original file line number Diff line number Diff line change @@ -2,16 +2,18 @@ import UIKit
2
2
3
3
extension UIImageView {
4
4
5
- public func setRemoteImage( URL: NSURL , placeholder: UIImage ? = nil ) {
5
+ public func setImage( URL: NSURL ? , placeholder: UIImage ? = nil ) {
6
+ image = placeholder
7
+
8
+ guard let URL = URL else { return }
9
+
6
10
let key = URL . absoluteString
7
11
8
12
if let fetcher = fetcher {
9
13
fetcher. cancel ( )
10
14
self . fetcher = nil
11
15
}
12
16
13
- image = placeholder
14
-
15
17
imageCache. object ( key) { [ weak self] object in
16
18
guard let weakSelf = self else { return }
17
19
You can’t perform that action at this time.
0 commit comments