UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Book on CoreData and CloudKit?

Forums > Books

Hi,

I am tyring to find material on Core Data and CloudKit. Specifically I would like to have a public/ shared data base where a user can send data to another user using CloudKit. I could not find such book on HWS (neither in the HWS+). Did I miss it?

Thanks

4      

Hi, There is Project 33 in Hacking with Swift that uses CloudKit to share data but not using Core Data as far as I remember. Maybe you can find something that can help you though. https://www.hackingwithswift.com/read/33/overview

4      

Thanks. I had actually checked this but as I am fairly new in Swift I focused entirely on SwiftUI :) I found some material on Ray Wenderlich on private, public and shared databases but it's still not great: is there a way to know the iCloud ID of someone with his email? Basically I need a public database to send data to a user, all using CloudKit only. I do not plan to use a third party DB like parse/ mongo.

4      

Hi, I can highly recommend Pracitcal Core Data from Donny Wals: https://practicalcoredata.com He covers everything in SwiftUI and UIKit with code samples. There a chapter on CloudKit as well.

4      

I have all the CoreData books, but I think you've fundamentally misunderstood what CloudKit features are available with CoreData.

It has nothing to do with user-to-user interaction at all, but rather to allow you to have your data transparently (at least mostly) available across your devices. So you start with the iPhone, and enter some data. Later, you're on your Mac, use your app, and the data's there.

There is CloudKitShare, but it has zero to do with CoreData. The database it's referring to in that article is something specific to CloudKit, not CoreData. I found this app, Stormy on GitHub that may help you. Note that it uses the CloudKit database, but not CoreData.

4      

Thanks. You are right, I wrongly mixed CoreData and CK here. CloudKitShare sounds like it can do what I need. I'll read about it and report back here.

5      

Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.