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

# progressHandler

A block Photos calls periodically while downloading the asset.

## Declaration

```swift
var progressHandler: ((Double, UnsafeMutablePointer<ObjCBool>) -> Void)? { get set }
```

## Discussion

Discussion If you request an asset whose data is not on the local device, and have enabled downloading with the isNetworkAccessAllowed property, Photos calls your block periodically to report progress and allow canceling the download. The block takes the following parameters:

## See Also

### Fetching Asset Data from iCloud

- [isNetworkAccessAllowed](photos/phcontenteditinginputrequestoptions/isnetworkaccessallowed.md)
