I am using UIDocumentPickerViewController
in Import mode and it shows PDFs on iCloud and Dropbox. However they are all greyed out and I cannot select them. What am I doing wrong?
First
import MobileCoreServices
now you're eable to access new values such as
String(kUTTypePDF)
Finally, in your Document View Controller
let importMenu = UIDocumentMenuViewController(documentTypes: [String(kUTTypePDF)], in: .import)
enjoy
You need to provide the types of documents that the user is allowed to select.
let docTypes = [
"com.adobe.pdf"
]
let docViewCtlr = UIDocumentMenuViewController(documentTypes: docTypes, in: .import)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With