I was able to get the list of photos from photo library with the following code.
guard let assetCollection = collection as? PHAssetCollection
else { fatalError("asset collection is required.") }
destination.fetchResult = PHAsset.fetchAssets(in: assetCollection, options: nil)
destination.fetchResult gets all the Photos in terms of PHAssets.I want to f find duplicate photos present in PHFetchResult.
Please suggest any advices.