From 471a2bf34052e151bd258ef025c58a9e14dfbc33 Mon Sep 17 00:00:00 2001 From: Heberti Almeida Date: Mon, 18 Apr 2016 16:31:59 -0300 Subject: [PATCH] Fix crash on initialisation --- SKPhotoBrowser.podspec | 2 +- SKPhotoBrowser/SKPhotoBrowser.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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