PHPicker: How to pick iCloud videos and report download progress?

Two questions:
  1. How do I pick videos with PHPicker stored in iCloud?

  2. How do I track iCloud download completion progress?

Code Block swift
func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) {
let type = "com.apple.quicktime-movie"
results.first!.itemProvider.loadFileRepresentation(forTypeIdentifier: type) { url, error in
let newURL = ... // copy item at url to a new location
let asset = AVAsset(url: newURL)
// display the video
}


Is this the correct approach? Items do seem to be downloaded from iCloud but I don't know how to track download progress.

Answered by Engineer in 629927022
Unfortunately detailed progress reporting currently is not supported. You can show an indeterminate progress indicator for now.

Please file a Feedback request so we can enhance it in the future.
Accepted Answer
Unfortunately detailed progress reporting currently is not supported. You can show an indeterminate progress indicator for now.

Please file a Feedback request so we can enhance it in the future.
loadFileRepresentation returns a Progress object. Does that give back good progress info while the video is downloading?
The progress returned by loadFileRepresentation can be inaccurate (tracked by 68037960).
PHPicker: How to pick iCloud videos and report download progress?
 
 
Q