App Crashes in ios 13
PHImageManager.default().requestImageData();
Works prefectly fine in ios 12.
Not even getting PHImageFileURLKey key.
Gets error
Unexpectedly found nil while unwrapping an Optional value: file
App Crashes in ios 13
PHImageManager.default().requestImageData();
Works prefectly fine in ios 12.
Not even getting PHImageFileURLKey key.
Gets error
Unexpectedly found nil while unwrapping an Optional value: file
Hello,
Are you certain that the PHAsset you are passing to requestImageData is not nil? Or the PHImageRequestOptions?
This happened to me a couple of weeks ago, in my case I had not set isNetworkAccessAllowed to true on the image request options.
let imageManager: PHImageManager = PHImageManager()
let options = PHImageRequestOptions()
options.isNetworkAccessAllowed = true
As a result any iCloud hosted images were not available and the results were empty.