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

Add “Edit in Excel” or “Edit photo” extension

The only way to communicate with other iOS apps “locally” is using what is called URLSchemes. This is the documentation to use URLScheme with the MSOffice apps. https://msdn.microsoft.com/en-us/library/office/dn911482.aspx Answering the specific question: How to check if file (image, xls, doc or any other) can be opened to edit? You can use the UIApplication method called … Read more