Post

Replies

Boosts

Views

Activity

PHPicker: How to pick iCloud videos and report download progress?
Two questions: How do I pick videos with PHPicker stored in iCloud? How do I track iCloud download completion progress? 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.
3
0
1.7k
Aug ’20