Post

Replies

Boosts

Views

Activity

Reply to CloudKit Design
If you want something accessible only to the individual use Private database, Public database is common to all users. Example: Restaurant Menu data can be in the Public database, food items ordered should be stored in Private database. So only the individual can view his ordered items. Refer to https://developer.apple.com/icloud/cloudkit/designing/.
Aug ’22
Reply to CoreData+CloudKit custom Zone
Are you using manually syncing your CloudKit with CoreData or are you using NSPersistentCloudKitContainer? If you using NSPersistentCloudKitContainer does the syncing for you, don't have to set any custom zone, it would set a custom zone automatically. If you are doing it manually, then you would need to set a custom zone when you are saving a record and when you are retrieving it not while loading the container's persistent stores (which is what you are doing).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to CloudKit, core data: "Failed to sync user keys" after Xcode update to 13.4.1
Use real device, and now you don't have to use your developer account (iCloud) on your real device, you could use your personal iCloud account. On CloudKit Dashboard there is a new option called "Act as iCloud Account" which can be used into your personal account Then you can debug and see your private database records for your personal account. If you don't have more than 1 device you could a build a simple UI (swiftUI), use your Mac as your other device
Aug ’22
Reply to NavigationStack and NavigationSplitView Runtime warnings
Xcode 14.0 beta 5 (14A5294e) seem to have fixed my issues with NavigationSplitView Fixed - Warnings Fixed - Selection of cell not happening (2nd time) in compact mode (For 3 column layout) - so no need to set the selected state of the middle column to nil onDisappear Hopefully it has fixed your issues as well, if not please file a feedback
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to Are CKRecords Guaranteed to be Added to an NSPersistentCloudKitContainer Store in creationDate order?
My understanding of your problem (could be wrong): You have a share extension and you have a parent Mac app. When you share data using the extension, the data gets duplicated Questions Where are you storing the data (which entity) when data is share extension? My approach (could be wrong) Share Extension should write to a separate entity that is not synced to iCloud Then sync the data from your share extension entity to your original entity You would have hooked your original entity to sync to iCloud so that should automatically take of syncing Steps Add a new configuration called ShareExt (example name) to your CoreData data model (xcdatamodeld file ) Add a new entity called MyEntity (example name) Add MyEntity to ShareExt configuration To persistentStoreDescriptions and add ShareExt (refer https://developer.apple.com/wwdc19/202) Sync from your MyEntity to your OriginalEntity (which you are using in the app) - refer https://developer.apple.com/documentation/coredata/linking_data_between_two_core_data_stores Reference Using CoreData with CloudKit Consuming Relevant Store Changes Linking Data Between Two Core Data Stores
Aug ’22
Reply to Using Core Data objects with Transferable
I didn't know about this till I read your post Based on the documentation, it looks like Item needs to be transferrable struct CKShareTransferRepresentation<Item> where Item : Transferable I am not sure how it fits in with CloudKit Sharing, CloudKit sharing already exists without transferable, may be it would be transformed, I am not sure CloudKit Sharing (without using transferable) - https://developer.apple.com/documentation/cloudkit/shared_records/sharing_cloudkit_data_with_other_icloud_users
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to ShareLink and DataRepresentation
Try it on iOS (iPad Simulator), try to share it and locally save it to Files locally on the iPad (you don't need iCloud) If it works then your code is fine, I feel transferable on macOS has a lot of bugs. After testing and confirming the issue, it would be great if you could file a feedback.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to Drag file from app to Finder on macOS
This seems like a bug, it works fine on iOS but macOS it doesn't work Please file a bug and post the feedback ID. The only workaround for now is to use ProxyRepresentation Note: ProxyRepresentation has a different purpose to serve as a proxy, but since the bug that is the only workaround I can think of.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22