Hi i have used following api to fetch camera roll images. but i need to filter images clicked by camera device but not downloaded from internet.
smartAlbums = PHAssetCollection.fetchAssetCollections(with: .album, subtype: .smartAlbumUserLibrary, options: allPhotosOptions)