Fix crash on initialisation

This commit is contained in:
Heberti Almeida 2016-04-18 16:31:59 -03:00
parent 84891b9e06
commit 471a2bf340
2 changed files with 3 additions and 3 deletions

View File

@ -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" }

View File

@ -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