If you are in the Bay Area i'll be in the SLUG meetup next Thursday talking about how I've been using #SwiftData (and why) alongside concurrency in my app. Pains included - see you there:
https://www.meetup.com/swift-language/events/303706286/?notificationId=%3Cinbox%3E%2112169065-1727548257474&eventOrigin=notifications
CocoaHeads x Swift Language User Group (SLUG) | November Meetup, Thu, Oct 10, 2024, 7:00 PM | Meetup

Please join us for this month's session together learning about Swift with talks by local members of the Swift community. We are so excited to see you all again! 📍This ev

Meetup

#SwiftData I tried to extract one of the techniques i use into a framework, still wip: https://github.com/juanarzola/fetch-descriptor-observer/blob/main/README.md

This is for observing changes for a fetch descriptor in the view context, while performing the fetch in the background using a different context. The models are converted to sendables for UI use.

fetch-descriptor-observer/README.md at main · juanarzola/fetch-descriptor-observer

Contribute to juanarzola/fetch-descriptor-observer development by creating an account on GitHub.

GitHub

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.

IndexInSpotlight.swift

GitHub Gist: instantly share code, notes, and snippets.

Gist