diff --git a/SKPhotoBrowser.podspec b/SKPhotoBrowser.podspec index 47424db..bcfcd9a 100644 --- a/SKPhotoBrowser.podspec +++ b/SKPhotoBrowser.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SKPhotoBrowser" - s.version = "1.8.2" + s.version = "1.8.3" s.summary = "Simple PhotoBrowser/Viewer inspired by facebook, twitter photo browsers written by swift2.0." s.homepage = "https://github.com/suzuki-0000/SKPhotoBrowser" s.license = { :type => "MIT", :file => "LICENSE" } diff --git a/SKPhotoBrowser/SKPhotoBrowser.swift b/SKPhotoBrowser/SKPhotoBrowser.swift index a159460..3a6eeba 100644 --- a/SKPhotoBrowser/SKPhotoBrowser.swift +++ b/SKPhotoBrowser/SKPhotoBrowser.swift @@ -203,7 +203,7 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate { setup() } - public convenience init(photos: [SKPhotoProtocol]) { + public convenience init(photos: [SKPhoto]) { self.init(nibName: nil, bundle: nil) for photo in photos { photo.checkCache() @@ -211,7 +211,7 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate { } } - public convenience init(originImage: UIImage, photos: [SKPhotoProtocol], animatedFromView: UIView) { + public convenience init(originImage: UIImage, photos: [SKPhoto], animatedFromView: UIView) { self.init(nibName: nil, bundle: nil) self.senderOriginImage = originImage self.senderViewForAnimation = animatedFromView