Skip to content

Commit

Permalink
fix(ios-image-asset): getImageAsync() can retrieve assets stored remo…
Browse files Browse the repository at this point in the history
…tely in iCloud (#5705)
  • Loading branch information
DickSmith authored and manoldonev committed Apr 25, 2018
1 parent 0fd0812 commit 9e3da8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tns-core-modules/image-asset/image-asset.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class ImageAsset extends common.ImageAsset {

let imageRequestOptions = PHImageRequestOptions.alloc().init();
imageRequestOptions.deliveryMode = PHImageRequestOptionsDeliveryMode.HighQualityFormat;
imageRequestOptions.networkAccessAllowed = true;

PHImageManager.defaultManager().requestImageForAssetTargetSizeContentModeOptionsResultHandler(this.ios, requestedSize, PHImageContentMode.AspectFit, imageRequestOptions,
(image, imageResultInfo) => {
Expand All @@ -70,4 +71,4 @@ export class ImageAsset extends common.ImageAsset {
UIGraphicsEndImageContext();
return resultImage;
}
}
}

0 comments on commit 9e3da8e

Please sign in to comment.