on ios 13 PHImageManagerMaximumSize does not work.
when calling
let manager = PHImageManager.default()
let option = PHImageRequestOptions()
option.isSynchronous = synchronous
option.isNetworkAccessAllowed = true
option.resizeMode = .exact
manager.requestImage(for: asset, targetSize: PHImageManagerMaximumSize, contentMode: .aspectFill, options: option, resultHandler: {(result, info) in
})
requestImage returns an error: Error Domain=NSCocoaErrorDomain Code=-1 "(null)"
This code runs fine on ios12
Can you please let me know how to get the original image on ios13?