Questions tagged [phpicker]
25 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
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"?

user1669396
- 13
- 3
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
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
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
SwiftUI: PHPicker is still loading
I'm working on a SwiftUI project using PHPicker. Everything currently works fine except that whenever I open the picker, will get the warning [Picker] Showing picker unavailable UI (reason: still loading) with error: (null)
Seems like the picker is…

Yanhao LI
- 15
- 5
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
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
-2
votes
1 answer
How to load image from photos using new PHPicker in iOS programmatically?
I want to select an image from photos using new PHPickerViewController and I want to open PHPicker directly when my controller is load.
Like this
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
…

Chandan Chandan
- 11
- 1
- 2