From b93e85dad08114b0af0d61f0ad837d09a3d44ffc Mon Sep 17 00:00:00 2001 From: Mads Bjerre Date: Wed, 31 Aug 2016 14:29:58 +0200 Subject: [PATCH] Skip loading image if already loaded --- SKPhotoBrowser/SKPhoto.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SKPhotoBrowser/SKPhoto.swift b/SKPhotoBrowser/SKPhoto.swift index 215d162..8c890ba 100644 --- a/SKPhotoBrowser/SKPhoto.swift +++ b/SKPhotoBrowser/SKPhoto.swift @@ -69,8 +69,9 @@ public class SKPhoto: NSObject, SKPhotoProtocol { public func loadUnderlyingImageAndNotify() { - if underlyingImage != nil && photoURL == nil { + if underlyingImage != nil { loadUnderlyingImageComplete() + return } if photoURL != nil {