Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
feat: added iCloud network access on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
killi8n committed Nov 5, 2020
1 parent b49c70c commit 56c36a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/ImageShowerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ extension ImageShowerViewController: UICollectionViewDelegateFlowLayout, UIColle
let asset = assets.object(at: indexPath.item)
let manager = PHImageManager.default()
let options = PHImageRequestOptions()
options.isNetworkAccessAllowed = true
options.version = .original
options.isSynchronous = true
manager.requestImageData(for: asset, options: options) { [weak self] (imageData: Data?, _: String?, _: UIImage.Orientation, _: [AnyHashable : Any]?) in
Expand Down

0 comments on commit 56c36a8

Please sign in to comment.