iCloud Drive is Apple's essential connection between all your devices, Mac, iPhone, iPad, even your Windows PC.

Overview

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

You might also like...
SwiftUI Jam 2021 - iPad Realtime Calculator

SwiftUI Jam 2021 - iPad Realtime Calculator A SwiftUI iPad calculator with realtime activity Features Addition, Subtraction, Multiplication, Division

A simple drawing app for iPad using SwiftUI
A simple drawing app for iPad using SwiftUI

TinyDraw A small little drawing app fro iPad using SwiftUIs Canvas view. Implemented along the HWS+ live stream by Paul Hudson. Features Drawing lines

An application on the iPad for people who cook. It comes with features such as smart recipes, recipe management and ingredient inventory tracking.

ChopChop ChopChop is an application on the iPad for people who cook. It comes with features such as smart recipes, recipe management and ingredient in

Swift Playgrounds 4 app created on the iPad
Swift Playgrounds 4 app created on the iPad

Spiro Swift Playgrounds 4 app created on the iPad^. ^ Xcode also used as explained below. πŸ™ Screenshots πŸ€” What is Spiro? An interactive animating sp

Daydreamer - A Figma viewer created in Swift Playgrounds for iPad

Daydreamer A native Figma client for iPad, created exclusively using Swift Playg

DevToys for iPad - a SwiftUI reimplementation of DevToys, a Swiss Army Knife for developers, for iPadOS
DevToys for iPad - a SwiftUI reimplementation of DevToys, a Swiss Army Knife for developers, for iPadOS

DevToys for iPad - a SwiftUI reimplementation of DevToys, a Swiss Army Knife for developers, for iPadOS

Pasta is clipboard application for ios devices.
Pasta is clipboard application for ios devices.

pasta Pasta is clipboard application for ios devices. Starting Requirements Xcode 13 Runing Not requires any specific steps, clone and run. git clone

An alternative app store for non-jailbroken iOS devices

AltStore AltStore is an alternative app store for non-jailbroken iOS devices. AltStore is an iOS application that allows you to sideload other apps (.

Basic calculator app for iOS devices using Swift 3 and Xcode
Basic calculator app for iOS devices using Swift 3 and Xcode

iOS Calculator App Basic calculator app for iOS devices using Swift 3 and Xcode. Created for learning purpose. How to use Just download source code an

Owner
MindInventory
MindInventory works with Enterprises, Startups, and Agencies since 2011 providing web, mobile app development, enterprise mobility solutions & DevOps services.
MindInventory
iCome Out is an open source project of an unofficial Pornub app for iPhone and iPad

iCome Out is an open source project of an unofficial Pornub app for iPhone and iPad, written in Swift with some cool features Getting Started Prerequi

Anon 3 Dec 1, 2022
Reading List is an iOS app for iPhone and iPad which helps users track and catalog the books they read

Reading List Reading List is an iOS app for iPhone and iPad which helps users track and catalog the books they read. Reading List v2 As of version 2.0

Andrew Bennet 281 Jan 15, 2022
OctoPod is a free open source iPhone/iPad app for OctoPrint

OctoPod OctoPod is a free open source iPhone/iPad app for OctoPrint. Build Instructions Download Xcode You will need to install Swift 5.0 and Xcode 11

Gaston Dombiak 193 Dec 30, 2022
Swift iPhone and iPad Client for Polls API, using Hyperdrive API client

Polls Client This is a Swift iPhone and iPad client for the Polls API - a simple application allowing users to view polls and vote in them. Polls is a

Apiary 34 Jul 15, 2022
A simple To-do list app build for iPhone, iPad and Apple Watch in Swift

A simple To-do list app build for iPhone, iPad and Apple Watch in Swift

Radu Ursache 186 Dec 28, 2022
This To-Do app was developed using Swift and SwiftUI and works on iOS, MacOS (Apple Silicon) and WatchOS. The tasks are kept on storage even when the app is restarted.

ToDo-SwiftUI This app has a lot of sentimental value for me, given that it helped me a lot to understand the process of doing an iOS app and became th

Augusto Galindo Ali 6 Jul 12, 2022
Mac-asksec - Test Mac Permissions from the Terminal

asksec A simple CLI to test permissions from any macOS terminal app. Building ru

Christian Zangl 1 Jan 18, 2022
iOS Trakt Client - Keep track of your favorite TV shows and movies on your iPhone. (Under development)

CouchTracker Keep track of your favorite movies and tv shows on your iPhone Setup for development You will need Xcode 11.2.1 Swift 5.1.2 Run the follo

Pietro Caselani 42 Apr 19, 2022
Pegase is a beautifully easy tool to keep track of your financial life on all your macOS

Pegase ?? Features ?? Documentation Personal account software Pegase is a beautifully easy tool to keep track of your financial life on all your macOS

null 2 Oct 12, 2021
A basic app to convert your money between USD, EUR and JPY.

Currency Converter App for iOS What frameworks and technologies used VIPER + MVI as architecture pattern Stevia for UIKit Layout Alamofire for Network

Arthur Zavolovych 2 Nov 2, 2022