Watch here: https://youtu.be/UUvgm9-yltE
#SwiftUI #SwiftData #SwiftDevelopment @AttributedString
And here is the blog post with some background information on the app.
Apple News remembers where you were, in each tab Now our app does too.
Kill the app. Relaunch. You're exactly where you left off.
Native. No third-party dependencies.
#SwiftUI #iOS #iOSDev #SwiftData #Swift #AppleDeveloper #iOSProgramming #iOS26 #Apple #AppleNews
Is there a way to use SwiftData in a view model, with automatic syncing of changes to the saved data, so I don't have to write shit like this because I have data in the model, but must have a `@Query` in the view to get the stored data?

I have finally managed to introduce persistence (via SwiftData) to Librarius.
I started by making my data models structs – as Apple recommended – only to find out SwiftData needs classes.
It made sense, so I switched to classes, it was hell on earth. I then, thanks to the advice of a friend, had both classes and struct representations (and class models could be instantiated from structs).
This made life easier, but is it a general pattern?
#Swift #swiftUI #SwiftData
http://github.com/stoiandan/Librarius
FB21159411 #CloudKit causes excessive view updates with #SwiftData Queries
Things are pretty bad for me to file feedback.
App views are updated far too often regardless if data changes. (at least on MacOS)
For simple text views you are unlikely to notice. With more complex views such as a map with the markers dancing around with each update it is a deal breaker.
I am wondering if this is causing some sketchy app behavior in Tahoe?
or I'm holding it wrong…
Initial implementation of indexing AppEntities backed by #SwiftData in spotlight - always nice to see an old library making it simpler (FetchDescriptorObserver). https://gist.github.com/juanarzola/131c81f2cdb438dc8114bb003b87eff2
Should be ok for just a few folders. Might need to add paging to the library to make it usable for more copious entities.
It’s kinda fun that you can go from a local app to a multi-platform client/server app using #SwiftUI and #SwiftData with very few changes to your data model and with no changes to the APIs you call
#SwiftLang #BuildInPublic #Technology #Apple #CloudKit #Apps