...
When your app is requested to handle an image or a PDF your AppDelegate
’s application(_:open:options:)
(Swift) method is called. You can then use the supplied URL to create a document as shown belowlater.
In some cases, especially when the LSSupportsOpeningDocumentsInPlace
flag is enabled in your Info.plist
file, reading data directly from the URL may fail. For that reason, GiniCapture
uses the asynchronous UIDocument
API internally which handles any of the potential security requirements.
...