From 586109bde4df7028907440245039cf9a118a946d Mon Sep 17 00:00:00 2001 From: Christoffer Winterkvist Date: Mon, 5 Oct 2015 13:18:42 +0200 Subject: [PATCH] Remove label --- Source/Photos.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Photos.swift b/Source/Photos.swift index faa3e5b4..5eafc7e2 100644 --- a/Source/Photos.swift +++ b/Source/Photos.swift @@ -32,13 +32,13 @@ struct Photos { let imageManager = PHImageManager.defaultManager() let requestOptions = PHImageRequestOptions() - imageManager.requestImageForAsset(asset, targetSize: size, contentMode: PHImageContentMode.AspectFill, options: requestOptions, resultHandler: { image, info in + imageManager.requestImageForAsset(asset, targetSize: size, contentMode: PHImageContentMode.AspectFill, options: requestOptions) { image, info in if let info = info where info["PHImageFileUTIKey"] == nil { dispatch_async(dispatch_get_main_queue(), { completion(image: image) }) } - }) + } } static func resolveAssets(assets: [PHAsset], size: CGSize = CGSize(width: 720, height: 1280)) -> [UIImage] {