Reputation: 2253
I want to open iCloud app (file)from my app programmatically.
I am uploading file on iCloud so I want to redirect user to iCloud directory.
It's not necessary to move direct app directory if just open iCloud from app is enough.
Upvotes: 1
Views: 1982
Reputation: 475
I would recommend you to look into UIDocumentBrowserViewController. You'll need to add a few keys to Info.plist
.
UIFileSharingEnabled
goes for Application supports iTunes file sharing
- YES
LSSupportsOpeningDocumentsInPlace
: Supports opening documents in place
- YES
or single (iOS 11+)
UISupportsDocumentBrowser
: Supports Document Browser
- YES
It seems there's no way to UIApplication.shared.open(URL(string: "")!)
for Files.
Upvotes: 3