AppIntents
How to use SwiftData with AppIntents
I came across this StackOverflow question How do I access the SwiftData container from outside of SwiftUI? but it turns out they needed to use the container inside an AppIntent. I knew the way to inject objects into AppIntents is via the AppDependencyManager but I’d never actually tried it with Read more…