Questions tagged [phpickerviewcontroller]
70 questions
3
votes
3 answers
How can i get PHAsset from PHPickerResult? iOS 14
So, I found similar questions asked before but when I tried the same way as what I got, and it does not work as I expected, so what I'm trying to do is, I want to get PHAsset from PHPickerResult from PHPickerViewController.
so experimenting it using…

Cado21
- 53
- 1
- 4
2
votes
0 answers
Show user's Selected Image when user accesses photos
I tried to show only photo that I selected before, but it won't work and show all photos. How do I solve this issue? I tried to use permission to limited access but it end up showing all of the photos - not just the photo I selected.
Photos show…

Sayur Kecambah
- 29
- 3
2
votes
0 answers
Adding a selection confirmation to PHPickerViewController
I'm implementing the new PHPickerViewController as follows:
func importMedia() {
var config = PHPickerConfiguration()
config.selectionLimit = 1
//config.filter = PHPickerFilter.images
let pickerViewController =…

SwiftArtery
- 296
- 1
- 10
1
vote
0 answers
PHPickerViewController Selected Photos Preview not showing close button
I am having this weird and odd behaviour with the PHPickerViewController. I am using SwiftUI and I have implemented the PHPickerViewController as a UIViewControllerRepresentable and everything seems to be working 100% fine expect when the user taps…

BrettS
- 295
- 6
- 14
1
vote
0 answers
How to get image URL from PHPickerViewController?
I want to select multiple images. Currently I was using UIImagePickerController. However, this does not allow multi-image selection as per this question. So I'm looking into implementing this using the PHPickerViewController. However, to progress I…

Muhammed Mahmood
- 43
- 6
1
vote
1 answer
PHPhotoLibrary showing all photos not only selected
Trying to write a picker for the avatar in my app and when PHAuthorizationStatus is .limited and the user already selected some photos in LimitedLibraryPicker, I'm trying to open the picker in this way
private func openPHPicker() {
…

Liubomyr Havronskiy
- 19
- 1
1
vote
0 answers
iOS 16.0 - PHPicker issue with PHPickerConfiguration config.selection = .people
I'm facing issues on 16.0 using PHPickerViewController with PHPickerConfiguration config.selection = .people. The PHPicker screen shows an error "Unable to Load Photos". Xcode 14.0.1.
import UIKit
import PhotosUI
class ViewController:…

fabrizio sposetti
- 11
- 2
1
vote
1 answer
PHPicker can't load selected image to UIButton
I created a UIButton programmatically Which can pick profile photo.
So I made image picker with PHPicker, and it shows well.
But after I selected image, it doesn't show on the button.
I thought the original photos could be the problem. But it's the…

LEE
- 13
- 3
1
vote
0 answers
PHPicker result(s) incomplete
SwiftUI novice here.
My PHPicker results show a weird behaviour.
Whether I pick one image or several, often the result is empty for a single image or incomplete if multiple images are picked.
Oddities: every image that is missing from a PHPicker…

Landogarner
- 11
- 2
1
vote
1 answer
PHPickerViewController not showing Photo Stream
We use PHPickerViewController to allow the user to pick photos to import into our app. Recently a user said they do not see their Photo Stream in the picker.
Is there a way to get the Photo Stream album to show in a PHPickerViewController?

Nic Hubbard
- 41,587
- 63
- 251
- 412
1
vote
1 answer
iOS PHPickerViewController does not provide Exif/Meta-Data
I am trying to read out some metadata from images which I fetched with the PHPickerViewController.
var config = PHPickerConfiguration()
self.phPicker = PHPickerViewController(configuration: config)
if let picker = self.phPicker {
…

Laufwunder
- 773
- 10
- 21
1
vote
0 answers
PHPickerViewController fails to load image
I have been trying to load an image from the photo library on a swifui app. I am running Xcode 13.2.1 and building IOS 15.2
My code is as below
@Binding var image: UIImage?
func makeUIViewController(context: Context) ->…

Pradyot
- 2,897
- 7
- 41
- 58
1
vote
1 answer
PHPickerViewController: How to deselect the previous selected image when reopen the image picker
I create an app with PHImagePicker support. It works and I could select multiple photos from photo library and import them into this app. But when I reopen this pickerController, the previous selected images are there with blue marks. I must to…

Zhou Haibo
- 1,681
- 1
- 12
- 32
1
vote
0 answers
"The file "..." couldn’t be opened because there is no such file" uploading video from phpickerviewcontroller to FirebaseStorageq
I'm trying to upload a video file using phpickerviewcontroller, but I'm running into an issue uploading the URL to FirebaseStorage. Here is some code:
func uploadVideo(videoURL: URL)
{
let storage = Storage.storage()
let…

EAO123
- 55
- 9
1
vote
3 answers
iOS 14: PHPickerViewController is there any way to load all assets at the same time PHPickerResult
Currently, I am trying to dive into PHPickerViewController for select multiple image at same time from Photos. so I want to array of image that selected by user, i tried it too many way but no luck. This is my code please tell me there is an best…

Hardip Gajera
- 61
- 1
- 9