Skip to content

Commit

Permalink
fix uncalled closure
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhenry committed Mar 18, 2022
1 parent a8da3c7 commit 9d9cb94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import UIKit

public protocol ImageDataSource:class {
public protocol ImageDataSource: AnyObject {
func numberOfImages() -> Int
func imageItem(at index:Int) -> ImageItem
}
Expand Down
1 change: 1 addition & 0 deletions Sources/ImageViewer_swift/ImageLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public struct URLSessionImageLoader: ImageLoader {

DispatchQueue.main.async {
imageView.image = image
completion(image)
}
}
}
Expand Down

0 comments on commit 9d9cb94

Please sign in to comment.