Questions tagged [phpicker]

9 questions
6
votes
1 answer

How can i display only limited photos with PHPickerViewController?

I use Limited Photos Library feature and have selected a few photo but when use PHPickerViewController to select images in the application, PHPickerViewController shows all images in the gallery instead of just a few selected ones before. Is it…
suzu
  • 61
  • 2
5
votes
1 answer

How to retrieve PHAsset from PHPicker?

In WWDC20 apple introduced PHPicker - the modern replacement for UIImagePickerController. I'm wondering if it's possible to retrieve PHAsset using the new photo picker? Here is my code: private func presentPicker(filter: PHPickerFilter) { …
0xBFE1A8
  • 5,640
  • 2
  • 16
  • 40
3
votes
0 answers

How to modify the appearance of PHPicker

I have a problem with the new PHPicker on iOS 14. When my app request for photo library authorization, the system will prompt the user with three options, and if the user selects "select photos", the system will present a PHPicker in which the user…
Mani
  • 31
  • 1
3
votes
0 answers

LazyVGrid, List, LazyStacks don't release views from memory?

I'm playing around with the new photo picker in SwiftUI 2 and I made a simple app to show the imported images in a LazyVGrid but when scrolling down, if I imported around 150 images the app finish all the memory and it crashes (Terminated due to…
Ludyem
  • 1,015
  • 10
  • 27
2
votes
0 answers

Is this the proper way to use PHPicker in SwiftUI? Because I'm getting a lot of leaks

I am trying to figure out if my code is causing the problem or if I should submit a bug report to Apple. In a new project, I have this code: ContentView() import SwiftUI struct ContentView: View { @State private var showingImagePicker =…
Rillieux
  • 267
  • 3
  • 15
2
votes
1 answer

iOS 14 NSItemProvider loadDataRepresentation() returns nil data for specified types

Setup: I am using PHPickerViewController to allow the user to select photos. I've implemented the PHPickerViewControllerDelegate protocol method picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]). I am getting the…
jbjohnny
  • 29
  • 1
0
votes
0 answers

Can I set the order of the images? PHPickerViewController

Using the PHPickerViewController, the result of the selected image will be displayed as a result. Can I set the order of the images? private func makePickerViewController(selectionLimit: Int) -> PHPickerViewController { var config =…
0
votes
0 answers

How to load raw image using PHPicker in iOS programmatically?

I can load normal images: public.image types. The Apple proRaw(adobe raw image type: DNG format) can be used in iPhone 12 series. So, I captured with RAW image and I want to load the DNG file from app. But I can't load the image using…
strawnut
  • 299
  • 2
  • 17
0
votes
0 answers

In Swift 5, how to retrieve images or video from the photo library having the file name as a search criterion

I am trying to retrieve photos or videos from the iOS photo library based on their suggested file name. E.g., how to retrieve (fetch) image IMG_2321, etc. Is there a way to use the PHPhotoLibrary or PHAsset objects to implement it? Thank you in…
sugarakis
  • 67
  • 5