If you’re going to use
UIDocumentPickerViewController, and also support opening files from the Files app, and now the home screen on iOS 13, it’s best to just use a
UIDocument subclass. Even if it’s simple data.
UIDocument handles the security-scoped URLs and file coordination, saving you some potential frustration.