Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to write files to icloud using file kit? #63

Open
IgorMuzyka opened this issue Sep 11, 2018 · 2 comments
Open

Is there a way to write files to icloud using file kit? #63

IgorMuzyka opened this issue Sep 11, 2018 · 2 comments

Comments

@IgorMuzyka
Copy link
Contributor

IgorMuzyka commented Sep 11, 2018

If yes then what the path that should be used and what changes are required for xcode project to support icloud on macOS

@IgorMuzyka
Copy link
Contributor Author

I'm sure i can just use this as path "~/Library/Mobile Documents/com~apple~CloudDocs/" and asking a user for access to this directory. But was interested if maybe there is a better way?

@phimage
Copy link
Collaborator

phimage commented Sep 17, 2018

I think there is no utility method to do it in FileKit

We could add it by using
https://developer.apple.com/documentation/foundation/filemanager/1411653-url

extension Path {
 public init?(ubiquityContainerIdentifier: URL) {
        // call the method with guar
        init(url: xxxx)
  }
}

phimage pushed a commit that referenced this issue Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants