---
title: progressHandler
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phassetresourcerequestoptions/progresshandler
---

# progressHandler

A block that Photos calls periodically while downloading the asset resource data.

## Declaration

```swift
var progressHandler: PHAssetResourceProgressHandler? { get set }
```

## Discussion

Discussion If you request an asset resource whose data is not on the local device, and you have enabled downloading with the isNetworkAccessAllowed property, Photos calls your block periodically to report progress.

## See Also

### Fetching Resource Data from iCloud

- [isNetworkAccessAllowed](photos/phassetresourcerequestoptions/isnetworkaccessallowed.md)
- [PHAssetResourceProgressHandler](photos/phassetresourceprogresshandler.md)
