We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let options = imagePicker.settings.fetch.album.options imagePicker.settings.fetch.album.fetchResults = [ PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumUserLibrary, options: options), PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .any, options: options) // PHAssetCollection.fetchAssetCollections(with: .album, subtype: .albumRegular, options: options), PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumFavorites, options: options), PHAssetCollection.fetchAssetCollections(with: .album, subtype: .albumRegular, options: options), PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumSelfPortraits, options: options), PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumPanoramas, options: options), PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumVideos, options: options)
]
Above code is not working on IOS 16. Anyone who knows how to show album list while selecting photo.
The text was updated successfully, but these errors were encountered:
Set it up before you present the imagepicker.
let imagePicker = ImagePickerController() imagePicker.settings.selection.max = self.imageCount imagePicker.settings.fetch.assets.supportedMediaTypes = [.image] let options = imagePicker.settings.fetch.album.options imagePicker.settings.fetch.album.fetchResults = [ PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumUserLibrary, options: options), PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .any, options: options), // PHAssetCollection.fetchAssetCollections(with: .album, subtype: .albumRegular, options: options), PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumFavorites, options: options), PHAssetCollection.fetchAssetCollections(with: .album, subtype: .albumRegular, options: options), PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumSelfPortraits, options: options), PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumPanoramas, options: options), PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumVideos, options: options) ] self.presentImagePicker(imagePicker, select: { (asset) in ......... }
Sorry, something went wrong.
No branches or pull requests
let options = imagePicker.settings.fetch.album.options
imagePicker.settings.fetch.album.fetchResults = [
PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumUserLibrary, options: options),
PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .any, options: options)
// PHAssetCollection.fetchAssetCollections(with: .album, subtype: .albumRegular, options: options),
PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumFavorites, options: options),
PHAssetCollection.fetchAssetCollections(with: .album, subtype: .albumRegular, options: options),
PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumSelfPortraits, options: options),
PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumPanoramas, options: options),
PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumVideos, options: options)
Above code is not working on IOS 16. Anyone who knows how to show album list while selecting photo.
The text was updated successfully, but these errors were encountered: