Skip to content

Commit

Permalink
Merge pull request #36 from hyperoslo/improve/fetch
Browse files Browse the repository at this point in the history
Adds two new things
  • Loading branch information
RamonGilabert committed Sep 23, 2015
2 parents f2ec186 + e76d327 commit f5af20e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/ImageGallery/ImageGalleryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
})
}
}

Expand Down

0 comments on commit f5af20e

Please sign in to comment.