Category: Swift App Development

CloudKit Save a Record

In this lesson you learn how to save an item (with an image) in the default zone of the CloudKit’s public database. Here is a use case scenario of that task:  Code presented on this page assume you are using Xcode 6.4 and Swift version 1.2. So if you are using a newer version of Swift, it […]

CloudKit Subscription

In this tutorial you learn how to do the following: Create subscription with a notification Register for a push notification Fetch and display the new record in the mainView’s textView  Code presented on this page assume you are using Xcode 6.4 and Swift version 1.2. So if you are using a newer version of Swift, it […]

CloudKit Record Zone

When you use the CloudKit Dashboard or Swift code to add records in the CloudKit private or public database, CloudKit put them in the private database’s Default Zone or the public database’s Default Zone. Private database’s Default Zone Public database’s Default Zone Now, a zone is like a table in the CloudKit database and it act like a silo […]

CloudKit Discoverability

Discoverability is a CloudKit feature that lets you: Fetch the user’s First Name and Last Name from their iCloud account. Fetch the user’s friends First Name and Last name from the user’s address book.  Code presented on this page assume you are using Xcode 6.4 and Swift version 1.2. So if you are using a newer […]

CloudKit Authentication

Assuming you’ve added the CloudKit entitlements in the starter project, you are ready to add code in the CloudKit project class files to interact with the CloudKit private and public database. Before, we do so though, you have to authenticate the app user. To authenticating the app user, you will add code in the app class files to perform these […]