92 questions
1
vote
1
answer
143
views
Picking image in iOS-first app when running it on macOS 26
An app that is capable of running on iPad can be usually run on Mac if properly designed and that's great.
Recently I've tried to launch one of my old apps on macOS 26 in "Designed for iPad" ...
-1
votes
1
answer
843
views
How to use a photo picker and display the selected photo within a single sheet in SwiftUI?
I want to have a sheet that displays a photo picker when the sheet is presented. After selecting a photo, the photo picker should disappear, but the sheet itself should remain open and display the ...
0
votes
0
answers
59
views
How to restrict single photo selection while photo library access permission is displayed and user selects allow access?
In my SwiftUI application user should is allowed select only one photo from photo gallery. When first time application is installed and it asks for App would like to access your photo libary pop up ...
0
votes
1
answer
464
views
PHPickerViewController in Full Screen and Can't select Item on iOS 18
I'm using the image_picker package to select photo in my Flutter iOS app. It worked correctly, but it looks like the Screenshot. It can't be selected nor dismissed. This is my code:
final ...
-2
votes
1
answer
36
views
How to check same file using NSItemProvider in iOS?
When I get some images of Photos in iPhone device using NSItemProvider by PHPickerViewController, I want to know how to check same file(image) with picked photos.
Because I use NSItemProvider, the ...
2
votes
1
answer
279
views
How can I disable location information in PHPickerViewController?
I'm using PHPickerViewController to allow a user to import photos into my app. Unfortunately, it seems to default to including location information (see screenshot below, all the way at the bottom). I'...
0
votes
0
answers
532
views
iOS 17 swift get GPS Location from Image [duplicate]
I am fetching an image from the photo library and fetch the GPS Location data, but it's not working.
This needs to work on iOS 17 as well, so I used PHPicker. kCGImagePropertyGPSDictionary is always ...
2
votes
1
answer
316
views
How to handle callback from PHPickerViewController in a KMM project?
I'm working on a KMM application with a video picking feature. For the iOS implementation, I'm using a PHPickerViewController. The view controller is well presented but I don't know how to handle the ...
0
votes
0
answers
132
views
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: <...
1
vote
1
answer
293
views
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 ...
1
vote
0
answers
46
views
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 ...
0
votes
2
answers
343
views
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 ...
0
votes
1
answer
594
views
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 ...
3
votes
1
answer
485
views
Swift PHPickerViewController cancel button changes color
I am currently using the PHPickerViewController 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 ...
1
vote
0
answers
3k
views
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 ...
1
vote
2
answers
2k
views
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 ...
1
vote
1
answer
1k
views
PHPhotoLibrary showing all photos not only selected [duplicate]
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 ...
1
vote
0
answers
759
views
iOS 16.0 - PHPickerViewController 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.
...
0
votes
0
answers
221
views
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, ...
1
vote
1
answer
1k
views
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 ...
0
votes
1
answer
264
views
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 ...
1
vote
0
answers
452
views
PHPickerViewController result(s) incomplete
SwiftUI novice here.
My PHPickerViewController 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 ...
0
votes
1
answer
9k
views
How to load image from photos using new PHPickerViewController in iOS programmatically?
I want to select an image from photos using new PHPickerViewController and I want to open PHPickerViewController directly when my controller is load.
Like this
import UIKit
class ViewController: ...
1
vote
1
answer
159
views
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 ...
0
votes
0
answers
2k
views
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, ...