Restrict document types for only PDF and Word documents

64 Views Asked by At

I'm using the UIDocumentMenuViewController to pick and choose documents. I want to restrict users to pick only .pdf and .docx files.

I know I can allow only PDFs like this.

UIDocumentMenuViewController(documentTypes: [String(kUTTypePDF)], in: .import)

But how do I include .docx types as well?

0

There are 0 best solutions below