Determine largest PHAsset image size available on iOS device

Solution 1:

Using the example project posted in the question I was able to reproduce the issue in the simulator, but when I made the following change I would receive only the largest image:

let targetSize = PHImageManagerMaximumSize