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

# isNetworkAccessAllowed

A Boolean value that specifies whether Photos can download the requested asset resource data from iCloud.

## Declaration

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

## Discussion

Discussion If true, and the requested resource data is not stored on the local device, Photos downloads that data 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 resource data. If false (the default), and the resource data is not on the local device, Photos calls the completionHandler block you provided in your request, with an NSError object indicating that the resource requires network access.

## See Also

### Fetching Resource Data from iCloud

- [progressHandler](photos/phassetresourcerequestoptions/progresshandler.md)
- [PHAssetResourceProgressHandler](photos/phassetresourceprogresshandler.md)
