Skip to content

Commit

Permalink
iOS 18 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SynthesOne committed Aug 22, 2024
1 parent d1b619a commit 307fb73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/General/MPManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 307fb73

Please sign in to comment.