File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -392,8 +392,11 @@ - (void)reloadUserLibraryAlbums
392
392
MXStrongifyAndReturnIfNil (self);
393
393
394
394
// List user albums which are not empty
395
- PHFetchResult *albums = [PHAssetCollection fetchAssetCollectionsWithType: PHAssetCollectionTypeSmartAlbum subtype: PHAssetCollectionSubtypeAlbumRegular options: nil ];
396
-
395
+ // Tchap: starting from iOS 18, select any subtype albums rather than regular ones else no album is listed (only a few recents photos)
396
+ // Maybe because 'smart' albums get a full revamp in iOS 18?
397
+ // PHFetchResult *albums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbum subtype:PHAssetCollectionSubtypeAlbumRegular options:nil];
398
+ PHFetchResult *albums = [PHAssetCollection fetchAssetCollectionsWithType: PHAssetCollectionTypeSmartAlbum subtype: PHAssetCollectionSubtypeAny options: nil ];
399
+
397
400
NSMutableArray *updatedUserAlbums = [NSMutableArray array ];
398
401
__block PHAssetCollection *cameraRollAlbum, *videoAlbum;
399
402
Original file line number Diff line number Diff line change
1
+ Réactiver l'affichage des albums dans le sélecteur de media sous iOS 18.
You can’t perform that action at this time.
0 commit comments