diff --git a/Source/ImageGallery/ImageGalleryView.swift b/Source/ImageGallery/ImageGalleryView.swift index d59be81e..7eb3e6a9 100644 --- a/Source/ImageGallery/ImageGalleryView.swift +++ b/Source/ImageGallery/ImageGalleryView.swift @@ -143,7 +143,7 @@ public class ImageGalleryView: UIView { let requestOptions = PHImageRequestOptions() let fetchOptions = PHFetchOptions() let authorizationStatus = ALAssetsLibrary.authorizationStatus() - let size = CGSizeMake(100, 150) + let size = CGSizeMake(720, 1280) canFetchImages = false requestOptions.synchronous = true @@ -172,8 +172,10 @@ public class ImageGalleryView: UIView { }) }) } else { - self.canFetchImages = true - self.collectionView.reloadData() + dispatch_async(dispatch_get_main_queue(), { + self.canFetchImages = true + self.collectionView.reloadData() + }) } }