PHFetchOptions include only photos from iPhone camera

513 Views Asked by At

Right now I use that to exclude Screenshots:

let options = PHFetchOptions()
options.predicate = NSPredicate(format: "NOT (mediaSubtype & \(PHAssetMediaSubtype.photoScreenshot.rawValue) != 0)")
var fetchResult: PHFetchResult<PHAsset> = fetchResult = 
PHAsset.fetchAssets(with: PHAssetMediaType.image, options: options)

But I want to include only photos that were taken from iPhone Camera (not photos that were saved from other applications like Skype and so on). Is it possible?

0

There are 0 best solutions below