@@ -37,7 +37,7 @@ Then, assign an array of keys to the property `imageIdentifiers`. This list sho
37
37
init(urls: [ String: NSURL] ) {
38
38
imageURLs = urls
39
39
40
- multiplexImageNode = ASMultiplexImageNode(cache: nil, downloader: ASBasicImageDownloader.sharedImageDownloader ())
40
+ multiplexImageNode = ASMultiplexImageNode(cache: nil, downloader: ASBasicImageDownloader.shared ())
41
41
multiplexImageNode.downloadsIntermediateImages = true
42
42
multiplexImageNode.imageIdentifiers = ["original", "medium", "thumb" ]
43
43
@@ -67,7 +67,7 @@ Then, if you've set up a simple dictionary that holds the keys you provided earl
67
67
</pre >
68
68
69
69
<pre lang="swift" class = "swiftCode hidden">
70
- func multiplexImageNode(imageNode: ASMultiplexImageNode, URLForImageIdentifier imageIdentifier: ASImageIdentifier) -> NSURL ? {
70
+ func multiplexImageNode(_ imageNode: ASMultiplexImageNode, urlForImageIdentifier imageIdentifier: ASImageIdentifier) -> URL ? {
71
71
return imageURLs[ imageIdentifier]
72
72
}
73
73
</pre >
@@ -96,11 +96,11 @@ For example, in the case that you want to react to the fact that a new image arr
96
96
</pre >
97
97
98
98
<pre lang="swift" class = "swiftCode hidden">
99
- func multiplexImageNode(imageNode: ASMultiplexImageNode,
100
- didUpdateImage image: UIImage?,
101
- withIdentifier imageIdentifier: ASImageIdentifier?,
102
- fromImage previousImage: UIImage?,
103
- withIdentifier previousImageIdentifier: ASImageIdentifier?) {
99
+ func multiplexImageNode(_ imageNode: ASMultiplexImageNode,
100
+ didUpdate image: UIImage?,
101
+ withIdentifier imageIdentifier: ASImageIdentifier?,
102
+ from previousImage: UIImage?,
103
+ withIdentifier previousImageIdentifier: ASImageIdentifier?) {
104
104
// this is optional, in case you want to react to the fact that a new image came in
105
105
}
106
106
</pre >
0 commit comments