Post

Replies

Boosts

Views

Activity

Reply to allowsMultipleSelection not working via SwiftUI
Finally it worked on my iPad too after updating to iPadOS/Xcode beta 2. Actually it didn't work on the first try, then I added one line inside updateUIViewController, and now it works!     func makeUIViewController(context: Context) -> UIDocumentPickerViewController {         let picker = UIDocumentPickerViewController(documentTypes: [kUTTypeImage as String], in: .open)         picker.allowsMultipleSelection = true         return picker     }     func updateUIViewController(_ uiViewController: UIDocumentPickerViewController, context: Context) {         uiViewController.allowsMultipleSelection = true     } The weird thing is it still works correctly even after I remove the line in updateUIViewController... Anyway, thanks for your help @OOPer and @marlonjames.
Jul ’20