Why are my CoreData Cloudkit Changes only saving to Private Database

I am using CoreData with CloudKit in SwiftUI and am able to save data but its only saving to the Private Database, how can i chose to save some data in different database example: Public Database instead of the Private Database.

Also what is the Shared Database for exactly? (is it for messages between two users in a chat style)
Answered by Di_Nerd in 638517022
I had to add NSPresistentCloudKitContainerOptions.databaseScope = .public to make it public
Accepted Answer
I had to add NSPresistentCloudKitContainerOptions.databaseScope = .public to make it public
Why are my CoreData Cloudkit Changes only saving to Private Database
 
 
Q