Alexander Käßner :apple_inc: · @alexkaessner
197 followers · 214 posts · Server mas.to

After being stuck for so many days on my migration, finally being able to move on feels so nice! :blobcheer:
I habe to use a workaround, but thats fine. Time to finish that update!

Thanks to Peter Hauke for taking a deep look into my issue and all the others being so helpful!

#CoreData

Last updated 1 year ago

Alexander Käßner :apple_inc: · @alexkaessner
196 followers · 196 posts · Server mas.to

Another question for all and experts:

How do I populate a new UUID attribute that I introduced during a Core Data migration? Can I use lightweight migration for that or do I have to rely on manual migration?

More: stackoverflow.com/q/76973333/7

#CoreData #swift

Last updated 1 year ago

Alexander Käßner :apple_inc: · @alexkaessner
194 followers · 185 posts · Server mas.to

To the experts:
How do I have to handle fetch requests in Shortcuts?

For some reason my code crashes whenever the app is running in background. Once the app is closed, my fetch works fine … :thonkpad:

More: stackoverflow.com/q/76976477/7

#appintents #CoreData #swift

Last updated 1 year ago

Ryan Hamilton · @ryankhamilton
0 followers · 5 posts · Server mas.to

I just submitted feedback FB12436124 that it would be great if relationship insert/deletes would trigger view redraws. This was not something we had in , and it is painful. For example if you add a new employee to department.employee, this won't trigger a redraw on ForEach(department.employees) {...}.

#CoreData #swiftdata

Last updated 1 year ago

Ryan Hamilton · @ryankhamilton
0 followers · 2 posts · Server mas.to

It looks like doesn't support constraints with multiple attributes, unlike . With CoreData you can enforce uniqueness for "firstName,lastName" where only entities with the same value for BOTH attributes would flag as duplicates. This is obviously valuable, and seems to be lost with @Attribute(.unique). Filed as feedback FB12385087.

#CoreData #swiftdata

Last updated 1 year ago

Alexander Käßner :apple_inc: · @alexkaessner
94 followers · 56 posts · Server mas.to

To all and experts out there:

I’m trying to access a user selected Core Data entity everywhere in the app. My current implementation leads to issues, though.
Has someone maybe a tip to get me unstuck?

➡️ stackoverflow.com/q/75937968/7

#CoreData #swiftui

Last updated 2 years ago

Sören · @chucker
400 followers · 7640 posts · Server norden.social

Playing with .

It’s… OK. I realize it’s very old now (2005, and really based on EOF from 1994), but Apple needs to either modernize it or replace it.

A bit like LINQ, it has its own custom query syntax, but with far less compile-time help. Play with Entity Framework (basically an ORM based on LINQ) for a day, and you’ll be like “…oh”.

#CoreData

Last updated 2 years ago

Rhett Rogers · @rhett
70 followers · 539 posts · Server rogersfam.co

More work on my app.

Been trying to set it up so objects can be created and updated from the objects sent from the API using the protocol.

It has had its headaches but I got it mostly set up, even to the point of updating existing objects in the data store.

My issue comes when I hit a collection of objects. I’m not sure how to handle inside of the init(from: Decoder) when some or all of those objects are already in my store

#CoreData #codable #swift

Last updated 2 years ago

Rhett Rogers · @rhett
41 followers · 289 posts · Server rogersfam.co

I started today working on my side job. I have been trying to figure out a way to show a preview using objects.

#SwiftUI #CoreData

Last updated 2 years ago

Lucas ✦ · @lucas
94 followers · 464 posts · Server post.lurk.org

Yesterday I spent a little time to learn more about and CloudKit, which seems to be working now. So all the data recorded with macOS or iOS will always stay synchronized, which I tested yesterday on our night out. Even tho we weren’t at home, we were getting live data of mood.

#Karlssons #CoreData

Last updated 2 years ago

Rhett Rogers · @rhett
41 followers · 281 posts · Server rogersfam.co

Anyone know any good migration tutorials?

#CoreData

Last updated 2 years ago