NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>

I have a complicated core data icloudkit requirement for my app

Forums > SwiftUI

I have a complicated core data icloudkit requirement for my app

The app requires two cloud containers

1st one (iCloud.com.mycompany.students) will be shared with my other apps. The database can be a private database. which I plan to use core data + icloudkit (NSPersistentCloudKitContainer)

2nd icloud container (iCloud.com.mycompany.content) which will be only used by one app, it has two databases (the public and the private database share the same schema) public database includes the built in content I plan to use regular icloudkit to access the data private database includes the user created content which I plan to use NSPersistentCloudkitCountainer)

So do I need three database containers with two different icloud container identifiers ?

Do I need to create two models one to manage the students and another one is to manage user created content?

How can I creat the store description for coredata icloudkit to access the different database containers?

I am new to swift and cloudkit and core data.

Thanks

1      

I'm struggling with it myself at the moment.
I've found a useful post explaining Cloudkit with a demo project:
Rambo.codes: Cloudkit 101

Maybe it helps you

1      

Hacking with Swift is sponsored by Play

SPONSORED Play is the first native iOS design tool created for designers and engineers. You can install Play for iOS and iPad today and sign up to check out the Beta of our macOS app with SwiftUI code export. We're also hiring engineers!

Click to learn more about Play!

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.