The issue started with macOS 14.0 Sonoma. I don't have any login items.
Post
Replies
Boosts
Views
Activity
@Tomato Yes, I did that thanks.
On second thought, it might be doable as a sidebar. Thank you very much for your help.
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.
Are you trying to save an Arrsy of data?
When I say the above don't work, I mean they always evaluate to false.
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.
Here's my original thread which I closed too early. https://developer.apple.com/forums/thread/735397
data.variable?.starts(with: SomeString) != nil always evaluates to true. The one that works is
data.variable?.starts(with: SomeString) ?? false
Well, it crashed because I initialized items to nil, init(items: [ChildItem]? = nil). But init (items: [ChildItem]? = []) worked, did not crash.
Several of us have had an issue with Data meant for Images on Xcode 15 Beta 5. Beta 4 worked fine. Beta 5 is broken. I recommend filling a Feedback.
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.
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.
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.
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..