https://www.meetup.com/swift-language/events/303706286/?notificationId=%3Cinbox%3E%2112169065-1727548257474&eventOrigin=notifications
#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.
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.