Questions tagged [phpickerviewcontroller]

70 questions
1
vote
1 answer

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 =…
Park재현
  • 49
  • 4
1
vote
0 answers

Why UIImagePickerViewController increase the usage of 'Documents & Data' every time I pick an image?

I use UIImagePickerViewController to pick a photo in my photo editing app. My user complained that the usage of my app's 'Documents & Data' is increasing every time he uses the app and now it's consuming nearly 1GByte. After some investigation, I…
1
vote
1 answer

PHPickerViewController add video editing screen aka (UIImagePickerController.allowsEditing = true)

I would like to edit/compress video after selection like it was in UIImagePickerController with allowsEditing = true. Still the new PHPickerViewController doesn't have this property and Apple says that there is no such property anymore here. But…
1
vote
0 answers

PHPickerViewController buggy UI flow in multi-select mode

The attached GIF says all, when using PHPickerViewController in multi-selection mode (selectionLimit = 0), the picker randomly selects assets as the user scrolls the scroll view without tapping on the photos. I am wondering how…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
1
vote
0 answers

Change default title of right bar button in PHPickerViewController

I'm implementing the new iOS 14 image picker PHPickerViewController. By default the right bar button has the title "Add". I want to change this to "Stamp". I tried the code below but it did not work. Does anyone know how to change the right bar…
chickenparm
  • 1,570
  • 1
  • 16
  • 36
0
votes
0 answers

Problem Updating "Limited Library" Selection with PHPickerViewController With Choice "Select Photos"

Context: I'm building an app where a user can select Screenshots from their Photos Library, and display them in a more organized manner. These images are not saved to a database, but instead are simply fetched back from the Library (using…
0
votes
0 answers

How to solve PHPickerViewControllerDelegate Error Domain=NSCocoaErrorDomain issues?

I have a problem choosing multiple images from the photo gallery using PhotoUI. If I pick 6 photos in UICollectionView it's showing 5 photos. Logs: Filename: IMG_0001 File Address: {types =…
Shahriar Hossain
  • 119
  • 2
  • 13
0
votes
1 answer

Can I pre-populate a search in iOS PHPicker?

Let's say I have an iOS "Cats" app that I want my users to select photos. Is there a way to open PHPicker with a search term pre-populated with "cats"?
0
votes
0 answers

preselectedAssetIdentifiers + PHPickerViewController

Interesting problem I found here. I am trying to load in pre-selected identifiers via preselectedAssetIdentifiers, which is working correctly. Essentially, I am letting my users edit photos, and as they edit one and move to the next, that image is…
daredevil1234
  • 1,303
  • 1
  • 10
  • 34
0
votes
1 answer

AVAssetTrack nominalFrameRate is always 30 for high speed videos

For some reason the AVAssetTrack nominalFrameRate is always 30 for high speed videos. 120 FPS and 240 FPS videos' nominalFrameRate property is always 30. However, 60 FPS videos' nominalFrameRate is 60. I'm reading in the video url through the…
0
votes
0 answers

Dismiss keyboard for PHPickerViewController not working

I'm using PHPickerViewController in my app and I want to keep it open even after the user selects an image. My flow is the following: after the user select the photo, another viewController is presented modally over it, displaying the selected…
MariaUngur
  • 52
  • 11
0
votes
0 answers

PHPicker - All selected UIImages returning nil

Good day. I'm using PHPicker in order to implement the use of selecting multiple photos and I've encountered an issue when trying to handle the deselecting action. When I deselect one of the pre-selected photos from the photo library after opening…
lex
  • 113
  • 8
0
votes
2 answers

How to deselect a photo after re-opening the photo library?

I'm using PHPicker to handle multiple image selections. When a user initially selects, for example, 3 images from the photo library, they can re-open the photo library and deselect any of the selected photos. But I'm not sure how to handle the…
lex
  • 113
  • 8
0
votes
1 answer

How to import AVIF image in iOS by PHPicker

I use PHPicker for user to import photos, but UIImage not support the pic of .AVIF, so I want to get the origin data of .AVIF pic, this is my code: func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) { …
zZz
  • 1
  • 3
0
votes
0 answers

PHPickerViewControllerDelegate load item using async await

I can't find much documented regarding the PHPickerViewControllerDelegate didFinishPicking function using async await and I'm not sure I understand how to use the NSItemProvider. Here is my delegate code: func picker( _ picker:…
David
  • 305
  • 2
  • 10