Post

Replies

Boosts

Views

Activity

Reply to SwiftData Predicates and .contains(where: )
I'm not exactly sure if this is the same issue, but from what I understand, collections, enums and other non-trivial value types are stored as binary data in CloudKit (you can check in CloudKit console) and their contents therefore can't be queried with a predicate. It's also mentioned here: https://www.hackingwithswift.com/quick-start/swiftdata/using-structs-and-enums-in-swiftdata-models
Aug ’24
Reply to watchOS `transferFile`
Thank you @darkpaw! Your error is different than WCErrorCodeFileAccessDenied, so at least I know that there might be a different issue in my code. Thanks so much. I'd keep coding as though the file has been transferred across You're right, but I'd also have to implement something in compiler conditionals on the watch side, otherwise I'll never be able to check the functionality after transferring the file...
Topic: App & System Services SubTopic: General Tags:
Sep ’22
Reply to SwiftData Predicates and .contains(where: )
I'm not exactly sure if this is the same issue, but from what I understand, collections, enums and other non-trivial value types are stored as binary data in CloudKit (you can check in CloudKit console) and their contents therefore can't be queried with a predicate. It's also mentioned here: https://www.hackingwithswift.com/quick-start/swiftdata/using-structs-and-enums-in-swiftdata-models
Replies
Boosts
Views
Activity
Aug ’24
Reply to watchOS `transferFile`
Thank you @darkpaw! Your error is different than WCErrorCodeFileAccessDenied, so at least I know that there might be a different issue in my code. Thanks so much. I'd keep coding as though the file has been transferred across You're right, but I'd also have to implement something in compiler conditionals on the watch side, otherwise I'll never be able to check the functionality after transferring the file...
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22