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?