A macOS CLI tool that exports original photos and videos from the macOS Photos library using PhotoKit.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Include iCloud Shared Photo Library assets in enumeration

Add .typeCloudShared to includeAssetSourceTypes in both
enumerateAssets() and totalAssetCount() so shared library
assets are discoverable via PhotoKit.

+2
+2
Sources/LadderKit/PhotoLibrary.swift
··· 57 57 let options = PHFetchOptions() 58 58 options.includeHiddenAssets = false 59 59 options.includeAllBurstAssets = false 60 + options.includeAssetSourceTypes = [.typeUserLibrary, .typeCloudShared] 60 61 let result = PHAsset.fetchAssets(with: options) 61 62 return result.count 62 63 } ··· 65 66 let options = PHFetchOptions() 66 67 options.includeHiddenAssets = false 67 68 options.includeAllBurstAssets = false 69 + options.includeAssetSourceTypes = [.typeUserLibrary, .typeCloudShared] 68 70 options.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: false)] 69 71 70 72 let fetchResult = PHAsset.fetchAssets(with: options)