Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
74 views

I'm trying to use UIDocumentPickerViewController. It works fine on the simulator and also on a real device in debug mode. I've tried replacing didPickDocumentAtURL with didPickDocumentsAtURLs but it ...
xyzzzzz's user avatar
  • 46
1 vote
1 answer
561 views

I'm updating some old code to avoid deprecated stuff and to use new APIs with UIDocumentPickerViewController. I used to have to list a bunch of custom strings for various file types like so: NSArray&...
Kenny Wyland's user avatar
1 vote
1 answer
268 views

I am displaying a UIDocumentPickerViewController inside a containerView so user can pick document while being able to interact with other controls on the screen. It works and the ...
Kashif's user avatar
  • 4,624
0 votes
0 answers
47 views

For the app I am currently working on I want to open a UIDocumentPickerController as a full screen popover. It works great but when the app is in split screen and not in the compact horizontal size ...
Konstantin's user avatar
0 votes
1 answer
550 views

I'm saving a file using UIDocumentPickerViewController, by having it move and rename a file from a temp location: UIDocumentPickerViewController* documentPicker = [[UIDocumentPickerViewController ...
david ralley's user avatar
1 vote
0 answers
88 views

I have a UIDocumentPickerViewController with the following code: if #available(iOS 14.0, *) { let apkType = UTType("com.coocaa.apk") let docPickerVC = UIDocumentPickerViewController(...
Kenny's user avatar
  • 11
3 votes
1 answer
421 views

Am porting over my UIDocumentPickerViewController into SwiftUI and whether I pick a file or cancel the picker I keep getting the error: [DocumentManager] The view service did terminate with error: ...
NewToSwiftUI's user avatar
1 vote
1 answer
594 views

Both the .fileImporter function (in SwiftUI) and the UIDocumentPickerViewController are shown as intended, but the do not show any contents. Instead it says: "Content not available" on the ...
Simon Lemcke's user avatar
0 votes
1 answer
387 views

My app has a list of supported uniform type indicator (UTI) strings: public static let supportedUTIs = ["public.text", "public.image", "com.adobe.pdf", "public....
swiftdrift's user avatar
4 votes
0 answers
280 views

I want to show most root folder with UIDocumentPickerViewController on presentation. UIDocumentPickerViewController has directoryURL feature. But I can't access the URL i want to access. Example usage ...
joemiddletone's user avatar
0 votes
0 answers
159 views

I have an iOS app using SwiftUI to develop its views. With some native popups (as the one of SKStoreReviewController.requestReview(in: windowScene) and the Files App Browser I'm getting a strange ...
Wonton's user avatar
  • 1,153
0 votes
0 answers
165 views

I have a pretty simple swift code to open Files app and let the user browse to any folder and pick a file. func goToFilesApp() { var documentPicker: UIDocumentPickerViewController if #...
Wonton's user avatar
  • 1,153
-1 votes
1 answer
411 views

I was trying to use the UIDocumentPickerViewController to import some pdf files in my Swift UIKit App. I'm not able to properly use the UIDocumentPickerViewController to display the files app and ...
Roy0Anonymous's user avatar
0 votes
0 answers
134 views

I have an iOS application that uses UIDocumentPickerController to present the user with a dialog where they can pick the location of a directory containing files for upload This is working just fine ...
gregt's user avatar
  • 1
0 votes
1 answer
258 views

I’m using UIViewControllerRepresentable for Document picker presentation in swiftUI. The issue is that I'm not able to select the video audio pdf it's all showing in a frozen manner. I need to fix ...
Aswanth's user avatar
-1 votes
1 answer
792 views

When I want to save a file to my App folder in iCloud, the save button is disabled, but it is enabled in other directories. Is there a way to enable it? My code: //... let urls: [URL] = [fileURL] ...
Hassan Taleb's user avatar
  • 2,566
1 vote
1 answer
665 views

I am presenting the UIDocumentUIPickerViewController from a view controller like this: let documentPicker = UIDocumentPickerViewController( documentTypes: [String(kUTTypePDF), String(kUTTypeImage)], ...
Sergio's user avatar
  • 1,982
0 votes
2 answers
715 views

So in my app I have created a Test.JSON file that I want the user to be able to move to the documents directory, outside of the app. I understand I have to do this by using ...
Dragounow's user avatar
1 vote
1 answer
1k views

Have this code: struct ContentView: View { var d1: [String: Any]? = nil var res: ValidationResult? let documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: [.jpeg, ....
János's user avatar
  • 35.5k
0 votes
0 answers
207 views

I am trying to import .db files using UIDocumentPickerViewController. Only need to show files with db extension (eg: sample.db) in document picker. There is an option to provide document type as ...
ajith Kumark's user avatar
2 votes
1 answer
1k views

In short: I am currently working on an app with which you can scan a QR code. The QR code contains a path to a folder in Apple's own "Files" app. And in this folder I would like to view the ...
Denis's user avatar
  • 31
1 vote
0 answers
331 views

I want to access a PDF file in a folder just to open the PDF file. When opening the UIDocumentPickerViewController, I want to open the target folder directly in which the file is stored. With the ...
Denis's user avatar
  • 31
0 votes
1 answer
224 views

I'm looking for an iOS API that allows accessing a user-selected folder in place (without importing it). It seems to be possible with native frameworks from Apple. How I expect it to work: User ...
Darrarski's user avatar
  • 4,452
2 votes
0 answers
1k views

I want to take the path of the folder or file I selected from Document Picker and move it to the "Folder" of my own application with FileManager. However, I am getting this error. I want to ...
Ufuk Köşker's user avatar
0 votes
1 answer
954 views

I'm asking the user to select an image or file in the "Folder" application in iPhone with DocumentPicker. How can I transfer this selected file or image to my own application? I got this ...
Ufuk Köşker's user avatar
1 vote
1 answer
201 views

My app is stuck at iOS 13 for the time being, and I can't get the UIDocumentPickerViewController only to allow the selection of binary files. This is what I'm putting into my info.plist <key>...
Yogurt's user avatar
  • 3,095
0 votes
0 answers
259 views

I'm trying creating a iOS app where the user can upload pdf, images, docs etc..., This is my code - it works just one time; when I try again I get the error shown down below. I don't understand why - ...
Mariglen Meta's user avatar
1 vote
0 answers
473 views

Here is the code that presents the picker when clicked on a button. I've tried the same on a different mac device and it worked just fine. Not sure what's different. Any help would be appreciated. ...
Karthikeya Chowdary's user avatar
1 vote
1 answer
815 views

I am reading a plist file selected by the user in iOS swift. The code works as expected on XCode simulators (iPhone 13). But on a real iPhone 13, the readArrayFromPlist function returns nil. I couldn’...
user3157047's user avatar
0 votes
1 answer
3k views

I am working on UIDocumentPickerViewController() in Swift. After opening the document picker the files and images look blurred and I can't select any of them. I have attached the screenshot and the ...
AqsaAmjad's user avatar
0 votes
2 answers
537 views

UPDATE I tried the following code solution and it allows for me to save to Google Drive now, but Egnyte and Dropbox are still greyed out. func exportPhotosToFileLocation() { var fileURLArray = ...
Christian W's user avatar
1 vote
0 answers
587 views

I would like to include a UI test in my project that exercises its interaction with UIDocumentPickerViewController. The test will need to run on a CI machine, which needs to be able to wipe the ...
Frank Schmitt's user avatar
4 votes
1 answer
2k views

Just to give some context, there is an iOS app I'm building (in Xamarin) that requires the ability to fetch files (in an automatic way without having the user to navigate to the files and select them ...
Dan Gerchcovich's user avatar
0 votes
1 answer
307 views

Using the simulator, running iOS 13.5, I encountered an intermittent, hard to reproduce issue whereby upon opening a file using UIDocumentPickerViewController (mode: UIDocumentPickerModeOpen), I get ...
user1251560's user avatar
0 votes
0 answers
409 views

I am using Font from UIDocumentPickerViewController and I am successfully registered font and also get UIFont.families. But once I kill the application and then reopen application then I can not get ...
Kamlesh Shingarakhiya's user avatar
1 vote
0 answers
354 views

I've got an iOS app using the document picker view. Image demonstrating the button When testing it however, I get the text "done" instead of what ideally would be "open" in the ...
aryan's user avatar
  • 13
2 votes
2 answers
2k views

I followed a tutorial on getting Url from a Document a user chooses and be able to display it on the View. My problem now is I want to add those Url's into an array. Then get the items from the array ...
user3220141's user avatar
3 votes
3 answers
4k views

I'm trying to open a picker with only certain file types allowed. I'm using this documentation to find the UTType I need: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/...
Juliette Destang's user avatar
10 votes
3 answers
15k views

Is there a way to get All of the different UTType extension types as Strings? I need them specifically for images, audio, and video. I followed this answer, but it doesn't give me all of the ...
Lance Samaria's user avatar
0 votes
0 answers
176 views

I am trying to customize UIDocumentPickerViewController NavigationBar but am not able to change the appearance of the navigation bar of UIDocumentPickerViewController. Only tintColor is getting ...
Yash Jadhav's user avatar
12 votes
2 answers
7k views

Method is deprecated from iOS 14, so need support for both iOS 14 and later. And iOS 13 and earlier.
Ashvin's user avatar
  • 9,111
1 vote
1 answer
3k views

Is it possible to make user able to choose a destination for the file that he wants to download, something like DocumentPicker which you can use when choosing a file to upload? I want something like ...
stackich's user avatar
  • 5,583
2 votes
1 answer
923 views

When following the onsite IOS documentation for UIDocumentPickerViewController in Xcode 12.5.1 with IOS 14.5 deployment target I get an error: Incorrect argument label in call (have '...
Greg's user avatar
  • 34.9k
0 votes
1 answer
356 views

I am developing an iOS App that will write files to an external device. I have installed and used UIDocumentPicker with the following code: let documentPickerController = ...
user12719663's user avatar
0 votes
1 answer
211 views

I am writing an iOS plugin for Unity in Objective-C. I have created a DocumentPicker which allows me to select Folders. However, it does not seem to have access to Third-party storage (such as ...
Sally's user avatar
  • 1
0 votes
1 answer
548 views

User picks document from UIDocumentPickerViewController that i will be working with later. Document picker delegate calls and gives me url for file, but there is no file at all. This is how i create ...
dandand's user avatar
  • 13
0 votes
1 answer
370 views

Does anyone know why there is no Select option when tapping 3 dots in UIDocumentPickerViewController like it is in a Files app? Even if multipleSelection is set to true. I noticed that it appears on ...
stackich's user avatar
  • 5,583
0 votes
1 answer
167 views

I am displaying overlay custom view in my app. I find the key window, and I add my overlay custom view to the key window's subview. And I set the overlay custom view's layer.zposition to 1. When I ...
이재빈's user avatar
0 votes
1 answer
621 views

When using UIDocumentPickerViewController with Mac Catalyst, are additional capabilities, permissions or sandbox configuration required? Have I missed a caveat? Running the following code on macOS (11....
NSGoat's user avatar
  • 67
1 vote
2 answers
583 views

I am new fairly new to swift development but am obsessed and in love with learning, I have not only dedicated myself to learning but I am starting to apply my knowledge and have built a small ...
user avatar