beckp
beckp

Reputation: 147

Select two documents using iOS Document Picker in Swift

Document picker enables the selection of a single document from Drive, Box, etc. However, I would like to be able to select a second document prior to leaving the interface so that I do not have to drill down through the folder structure a second time. Unfortunately, the protocol dismisses the pop-up once a document is selected. Ideas, alternatives?

Upvotes: 1

Views: 2843

Answers (2)

agirault
agirault

Reputation: 2928

They deprecated documentPicker:didPickDocumentAtURL: for documentPicker:didPickDocumentsAtURLs: instead, and exposed allowsMultipleSelection in iOS11, but even with this I do not seem to be able to select multiple urls in the document browser.

Upvotes: 0

Matthieu Rouif
Matthieu Rouif

Reputation: 2863

Selecting multiple files will be possible with iOS11 by setting “allowMultipleSelection” Boolean to true for your UidocumentPicker https://developer.apple.com/documentation/uikit/uidocumentpickerviewcontroller/2902365-allowsmultipleselection

Upvotes: 1

Related Questions