Post

Replies

Boosts

Views

Activity

Reply to Collaboration Preview Image and Title for CKShare When Collaborating With CloudKit
Thank you for providing your code – the pithy/focused logic helped me to home in on the problem in my code. I failed to update the CKShare's metadata after uploading it to the CloudKit server. The returned share (or the share flushed locally) does not hold onto the metadata assigned to the share prior to submission to CloudKit servers. The metadata has to be reassigned after retrieval of the freshly saved share and prior to the execution of the NSItemProvider's preparationHandler. ––– Updating the code... Previous: let itemProvider = createItemProvider(for: share) { try await self.saveNewShare(share, rootRecord: rootRecord, container: AVSCloud.container()) } Updated: let itemProvider = createItemProvider(for: share) { let savedShare = try await self.saveNewShare(share, rootRecord: rootRecord, container: AVSCloud.container()) savedShare.updateMetadata(note: note) return savedShare } Thank you.
Jul ’24
Reply to Apple Music API 500
Same issue here.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to WeatherKit stopped working
I'm experiencing the same issue. No code changes, requests started failing with "invalidAuthorization" errors.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to FocusState not working as expected in iOS 17(Public Beta)
I'm experiencing the same issue. In my case, there is no WindowGroup nor List, but we do have the NavigationStack deployed within fullScreenCover and the views subject to focus are within a ScrollView and ScrollViewReader.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Collaboration Preview Image and Title for CKShare When Collaborating With CloudKit
Thank you for providing your code – the pithy/focused logic helped me to home in on the problem in my code. I failed to update the CKShare's metadata after uploading it to the CloudKit server. The returned share (or the share flushed locally) does not hold onto the metadata assigned to the share prior to submission to CloudKit servers. The metadata has to be reassigned after retrieval of the freshly saved share and prior to the execution of the NSItemProvider's preparationHandler. ––– Updating the code... Previous: let itemProvider = createItemProvider(for: share) { try await self.saveNewShare(share, rootRecord: rootRecord, container: AVSCloud.container()) } Updated: let itemProvider = createItemProvider(for: share) { let savedShare = try await self.saveNewShare(share, rootRecord: rootRecord, container: AVSCloud.container()) savedShare.updateMetadata(note: note) return savedShare } Thank you.
Replies
Boosts
Views
Activity
Jul ’24