---
title: isNetworkAccessAllowed
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phimagerequestoptions/isnetworkaccessallowed
---

# isNetworkAccessAllowed

A Boolean value that specifies whether Photos can download the requested image from iCloud.

## Declaration

```swift
var isNetworkAccessAllowed: Bool { get set }
```

## Discussion

Discussion If true, and the requested image is not stored on the local device, Photos downloads the image from iCloud. To be notified of the download’s progress, use the progressHandler property to provide a block that Photos calls periodically while downloading the image. If false (the default), and the image is not on the local device, the PHImageResultIsInCloudKey value in the result handler’s info dictionary indicates that the image is not available unless you enable network access.

## See Also

### Fetching Image Data from iCloud

- [progressHandler](photos/phimagerequestoptions/progresshandler.md)
- [PHAssetImageProgressHandler](photos/phassetimageprogresshandler.md)
