Skip to content

Commit 9d9cb94

Browse files
committed
fix uncalled closure
1 parent a8da3c7 commit 9d9cb94

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Sources/ImageViewer_swift/ImageCarouselViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
public protocol ImageDataSource:class {
3+
public protocol ImageDataSource: AnyObject {
44
func numberOfImages() -> Int
55
func imageItem(at index:Int) -> ImageItem
66
}

Sources/ImageViewer_swift/ImageLoader.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public struct URLSessionImageLoader: ImageLoader {
2323

2424
DispatchQueue.main.async {
2525
imageView.image = image
26+
completion(image)
2627
}
2728
}
2829
}

0 commit comments

Comments
 (0)