In my case, I have an existing Core Data / CloudKit app that I am converting to SwiftData / CloudKit. The data structure is in the Cloud via CloudKit. The transition needs to be seamless from Core Data to SwiftData. My model has several image variables. Beta 5 saves the data fine. I can see it in the CloudKit dashboard. And my core data app can get the image data and display the images fine, even the data saved with Beta 5..
It is being defined as external storage (@Attribute(.externalStorage) var backImageData: Data?). See my original post. As I said, it worked fine until Beta 5.
The issue for me is that I am converting a core data model into a SwiftData model. It needs to be compatible with the existing data format. The conversion worked great before Beta 5.
Also, if I change my model to include a structure, that may persist the data, but how would I sync a structure with CloudKit? No, they have to fix this issue. I don't see a viable workaround that includes iCloud syncing.
When I played with this situation on Swift Playgrounds, the starts(with: worked no matter if the ? was used after variable of if the ? was used. The problem is that this condition is being evaluated within the Predicate macro and I think there's something going in with that so that only the data.variable?.starts(with: SomeString) ?? false one works.
Adding a sidebar for this is complicated as all of my main view controller views are UIKit views using UIViewControllerRepresentable. I have search icons and delegates to contend with. A future submittal may go with Sidebars, but for now, I'll stick with TabViews.
In my case, I have an existing Core Data / CloudKit app that I am converting to SwiftData / CloudKit. The data structure is in the Cloud via CloudKit. The transition needs to be seamless from Core Data to SwiftData. My model has several image variables. Beta 5 saves the data fine. I can see it in the CloudKit dashboard. And my core data app can get the image data and display the images fine, even the data saved with Beta 5..
It is being defined as external storage (@Attribute(.externalStorage) var backImageData: Data?). See my original post. As I said, it worked fine until Beta 5.
The issue for me is that I am converting a core data model into a SwiftData model. It needs to be compatible with the existing data format. The conversion worked great before Beta 5.
Also, if I change my model to include a structure, that may persist the data, but how would I sync a structure with CloudKit? No, they have to fix this issue. I don't see a viable workaround that includes iCloud syncing.
When I played with this situation on Swift Playgrounds, the starts(with: worked no matter if the ? was used after variable of if the ? was used. The problem is that this condition is being evaluated within the Predicate macro and I think there's something going in with that so that only the data.variable?.starts(with: SomeString) ?? false one works.
Adding a sidebar for this is complicated as all of my main view controller views are UIKit views using UIViewControllerRepresentable. I have search icons and delegates to contend with. A future submittal may go with Sidebars, but for now, I'll stick with TabViews.