Questions tagged [phpickerviewcontroller]
70 questions
0
votes
0 answers
Swift PHPicker cancel button changes color
I am currently using the PHPicker from apple. Works great but whenever I switch to the album segment the cancel button changes colour to white, making it barely visible. When I switch back to all it stays white. Like so:
code to initialise the…

Mr_Bull3t
- 67
- 1
- 6
0
votes
2 answers
How do I play a video which was selected from Gallery?
I have two viewcontrollers: GetStartedViewController (root viewController) and TrimVideoViewController. I pick a video from the root one using PHPicker and I need to play that video in the second viewController. The problem is that when I provide…

SunnySideUp
- 1
- 1
0
votes
1 answer
Show Selected Image View on PHPicker
I already use PHPicker to view get may image. I want to ask how u show only show selected image when u pick a image? I already try many things and it always show all image in galery. Kindly help.
Here Some Code on View:
import Foundation
import…

Sayur Kecambah
- 29
- 3
0
votes
2 answers
Is request permission require for using PHPickerViewController & UIImagePickerController?
I have some confusion about permission with using PHPickerViewController & UIImagePickerController.
Do I have to request permission for using it ? (Currently, I open it without request permission but It's working.)
Is it acceptable for upload to app…

Nawin P.
- 223
- 1
- 4
- 11
0
votes
0 answers
PHPickerview result will not load videourl
I'm trying to get the video URL (video chosen from user camera roll) from PHPickerview result, however I'm receiving this error: It's saying that it can't load representation of type public.movie, hence the file won't be opened since it doesn't…

EAO123
- 55
- 9
0
votes
0 answers
Am i doubling the amount of time it takes for the video to upload (from user's camera roll)?
In one of my view controllers, I'm using PHPickerViewController. When I get my results, I then upload the URL to Firebase. It works fine, but with this line of code, try! FileManager.default.copyItem(at: videoURL, to: copiedURLFile), I'm not sure if…

EAO123
- 55
- 9
0
votes
1 answer
How to compress video after getting result from PHPickerViewController xcode swift
I know that UIImagePickerController allows you to compress media content upon selection. However, I'm not sure how to do the same with PHPickerViewController. How can I compress a video after getting a result (didFinishPicking), (so I can reduce the…

EAO123
- 55
- 9
0
votes
1 answer
Track progress of PHPickerViewController video upload, takes way too long to upload videos over 5 minutes
I set this up in my code and it works fine. I try to download the URL from user library, and upload it to Firebase Storage through another function, but for videos over 5 minutes, it seems to take forever to download before uploading to the…

EAO123
- 55
- 9
0
votes
1 answer
firebase upload error Domain=NSItemProviderErrorDomain Code=-1000 "Cannot load representation of type
So I set up a PHPickerViewController, and it uploads the videos from the camera roll (slowly ugh, but it does it). Sometimes, the video uploads. Other times, I get this error (especially with longer videos), and I'm unsure why:
Error…

EAO123
- 55
- 9
0
votes
0 answers
Why does PHPickerViewController say "Unable to Load Photos"
I'm working on a project where I need the user to be able to select images from their camera roll. I was using a UIImagePickerController but for some reason it's not working anymore which I assume is because they've finally depricated the…

JonGrimes20
- 115
- 9
0
votes
0 answers
UIImagePickerController in iOS 14+ with Limited Access
I have an App which needs to Access Photos and Videos from the iPhone Photos App. in iOS 14+ Apple has Introduced new API PHPicker but that still lacks lot of common feature like Cropping image, trimming video.
Issue comes, When you have limited…

Jatin Garg
- 306
- 1
- 2
- 16
0
votes
1 answer
Multiple Button Images from PHPickerViewController
My View has four buttons. When you click on a button it launches the PHPickerViewController that allows a user to select an image from their device. How can I know which button was clicked so that I can set the chosen image on that specific…

Francis Muli
- 3
- 1
0
votes
1 answer
How to upload multiple image on firebase using Swift's PHPickerController
so in Swift, you have the ability to upload an image/video with ease using UIImageViewController. I did research and came across PHPickerController and I am trying to incorporate that into my code - for the reasoning being that I want multiple…

Max Fritzhand
- 45
- 6
0
votes
2 answers
Getting the size of a media item given a NSItemProvider?
I'm using a PHPickerViewController to allow the user to select a media item from their library. And the specific case of interest is when they select a video.
I get a callback on the PHPickerViewControllerDelegate delegate method:
func picker(_…

Chris Prince
- 7,288
- 2
- 48
- 66
0
votes
1 answer
Replacing UIImagePickerController with PHPickerViewController
I'm in the middle of replacing UIImagePickerController with PHPickerViewController for iOS 14, but I'm having issues displaying the selected photo in the UI using PHPickerViewController. When I select a photo from the Photo Library, the…

safetotry
- 67
- 6