Questions tagged [phpickerviewcontroller]

70 questions
0
votes
1 answer

SwiftUI: Is it possible to let the user scale an image chosen with PHpicker?

I have an image picker created with PHPicker, and I was wondering if it is possible to let the user scale the chosen image? This is not the entire code, but just the code for the makeUIViewController which I think is what is needed to solve this…
Nick
  • 219
  • 4
  • 15
0
votes
0 answers

How to play a video from url using SKVideoNode?

I'm getting the url using PHPickerViewControllerDelegate. I've confirmed that my url has properly feed into the code but when i play the video node, no video is displayed and i dont hear any sound, so it's not a layering issue. We can call this…
0
votes
0 answers

How can I prevent PHPickerViewController from showing content behind top bar items?

In the image, the top bar is transparent which can be seen when scrolling the content up. I'd like for it to be opaque but since the controller shown here is the PHPickerViewController. I am not sure how to access the attributes I need to make it…
jordanlgraves
  • 93
  • 1
  • 7
0
votes
0 answers

how to use loadItemForTypeIdentifier to load an image

I have the following function which loads an image using the new PHPickerViewController: - (void) picker:(PHPickerViewController *)picker didFinishPicking:(NSArray *)results { PHPickerResult *result = [results firstObject]; …
NSMoron
  • 141
  • 1
  • 10
0
votes
1 answer

Push view controller over PHPickerViewController

Is that possible to push vc over the PHPickerViewController? I'm trying to do that like this with no luck: var configuration = PHPickerConfiguration() configuration.filter = .any(of: [.images, .livePhotos]) photoPickerController =…
0
votes
2 answers

UIImagePickerController and PHPickerViewController image selection blank in iOS14

Had this working on the last few versions of iOS but on 14 cannot get this to work, I have spent the past 5 days Googling. Whenever I go to add an image from the gallery the popup to select an image is blank. I have tried…
0
votes
1 answer

How to obtain photo data/metadata after being picked in PHPickerViewController?

In the app I work on, I am being tasked with a requirement to present the user their device photos using a PHPickerViewController. Once selected, I need access to: The original image data The file name of the image The creation date of the…
Zach
  • 3,909
  • 6
  • 25
  • 50
-1
votes
2 answers

PHPicker delegate error: PHPickerViewControllerDelegate doesn't respond to picker:didFinishPicking

In WWDC20 apple introduced PHPicker, the replacement for UIImagePickerController. I have a wrapper NSObject class witch handles all the configuration and presentation of image picker controller, now I'm replacing the implementation to support…
Fabiosoft
  • 1,141
  • 14
  • 32
-2
votes
1 answer

Problem with webp and PHPickerViewController

I have a simple image picker (code was found somewhere on the internet): struct ImagePicker: UIViewControllerRepresentable { @Binding var image: UIImage? func makeUIViewController(context: Context) -> PHPickerViewController { var…
misster
  • 11
-2
votes
1 answer

"Cannot load representation of type public.video" using PHPickerViewController

Trying to allow user to upload video from camera roll using PHPickerViewController (eventually to firebase storage) which is why I'm trying to get the url, but I'm getting this annoying error: Error Domain=NSItemProviderErrorDomain Code=-1000…
EAO123
  • 55
  • 9
1 2 3 4
5