Skip to content

Commit

Permalink
Adds two new things
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonGilabert authored and Ramon Gilabert Llop committed Sep 23, 2015
1 parent f2ec186 commit e76d327
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 e76d327

Please sign in to comment.