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

# progressHandler

A block that Photos calls periodically while downloading the image.

## Declaration

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

## Discussion

Discussion If you request an image 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 and to allow you to cancel the download.

## See Also

### Fetching Image Data from iCloud

- [isNetworkAccessAllowed](photos/phimagerequestoptions/isnetworkaccessallowed.md)
- [PHAssetImageProgressHandler](photos/phassetimageprogresshandler.md)
