From 307fb73505b813cd179ff62c4a5aec5fdc581c46 Mon Sep 17 00:00:00 2001 From: SynthesOne Date: Thu, 22 Aug 2024 10:32:41 +0500 Subject: [PATCH] iOS 18 fix --- Sources/General/MPManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/General/MPManager.swift b/Sources/General/MPManager.swift index a0dba06..dffd387 100644 --- a/Sources/General/MPManager.swift +++ b/Sources/General/MPManager.swift @@ -163,7 +163,7 @@ public enum MPManager { option.fetchLimit = limitCount option.sortDescriptors = [.init(keyPath: \PHAsset.creationDate, ascending: false)] - let smartAlbums = PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .albumRegular, options: nil) + let smartAlbums = PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .any, options: nil) smartAlbums.enumerateObjects { collection, _, stop in if collection.assetCollectionSubtype == .smartAlbumUserLibrary { stop.pointee = true