GithubHelp home page GithubHelp logo

mindinventory / icloudexample Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 0.0 13 KB

iCloud Drive is Apple's essential connection between all your devices, Mac, iPhone, iPad, even your Windows PC. While the cost of storage seems expensive in comparison to other online storage services, its advantage is that it works natively across all your devices.

Home Page: https://www.mindinventory.com/iphone-application-development.php

Swift 100.00%
swift5 icloud storage-api ios backup synchronization icloud-sync

icloudexample's Introduction

iCloud Document Storage

iCloud Drive is Apple's essential connection between all your devices, Mac, iPhone, iPad, even your Windows PC.While the cost of storage seems expensive in comparison to other online storage services, its advantage is that it works natively across all your devices.

alt text

In this iCloud tutorial, you'll learn how to create folder and add files in iCloud from your app as well as how to move and copy files from Local to iCloud and Vice versa.

You can download source code at end of this blog.

Let's see how to do it 🙂

Setting up iCloud Storage APIs

Let's start by creating a new project for iOS.

You can select the single view application template. In this tutorial we're not going to touch the UIDocument class at all. 🤷‍♂️

alt text

The first step is to enable iCloud capabilities, which will generate a new entitlements file in your project. Also you'll have to enable the iCloud application service for the app id on the Apple developer portal. You should also assign the iCloud container that's going to be used to store data. you have to do this manually.

Note: You need a valid Apple Developer Program membership in order to set advanced app capabilities like iCloud support. So you have to pay $99/year🤑

The next step is to modify the Info.plist. I would recommend selecting "Open As" option and use "Source Code" so you can work with pretty standard XML.

alt text

Read brief article on Medium

icloudexample's People

Contributors

hdkmodha1991 avatar parthgohiliios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

icloudexample's Issues

Get folders from icloud container

Hello,
is it possible to fetch the level 1 folders from the container?

I don't have subfolders and the tree is like:
root/folder1
root/folder2
...
root/folderN

I would like to get the list [folder1, folder,2 ..., folderN] in a performant way, which doesnt require to inspect all files inside the container. Is that doable?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.