See Cloud Kit Framework Reference
The Cloud Kit framework provides interfaces for moving data between your app and your iCloud containers. You use Cloud Kit to take your app’s existing data and store it in the cloud so that the user can access it on multiple devices. You can also store data in a public area where all users can access it.
- Go to General and sign your application.
- Go to Capabilities and add iCloud + CloudKit to your application.
- Make sure that you have an iCloud account active in your simulator.
Disclaimer: Please not that this is simply a side project I worked on while at WWDC. Written in around 3 hours after announcement while Swift was still fairly new to everyone. While things might not be perfect, they work and I will update the repo accordingly as I learn more about Swift and CloudKit.
Fetch all tasks
loadTasks()
Delete all tasks
deleteTasks()
Add a task with a priority
recordSaved()
Twitter - Follow me on Twitter.
MIT License - Fork, modify and use however you want.