Implement Document Picker in swift (iOS)

Update for iOS 14: You do not need any capabilities. Just create a UIDocumentPickerViewController with the appropriate types, implement the delegate, and you are done. More info in this answer. Code from there: import UIKit import MobileCoreServices import UniformTypeIdentifiers func selectFiles() { let types = UTType.types(tag: “json”, tagClass: UTTagClass.filenameExtension, conformingTo: nil) let documentPickerController = UIDocumentPickerViewController( … Read more