قالب وردپرس درنا توس
Home / IOS Development / ios – UIImagePickerController displays only the Video folder, but not others like Selfies and Slo-mo

ios – UIImagePickerController displays only the Video folder, but not others like Selfies and Slo-mo



When I use UIImagePickerController I can only filter videos to display iOS 12 (also applies to iOS 10+) using the tags below:

  picker.allowsEditing = false
picker.mediaTypes = ["public.movie"]
picker.sourceType = .photoLibrary
if # available (iOS 11.0, *) {
picker.videoExportPreset = AVAssetExportPresetPassthrough
}
present (picks, animated: true, completion: zero)

However, many iOS folders are displayed by default, such as moments, camera rolls, newly added, videos, selfies, Slo-mo and other albums I created.

How can I just display the videos folder?


Source link