Hello,
Ive been working on adding shortcuts to my app and have had some success with executing API calls and returning strings. But when I try to use the user input to create a Core Data entity or to check the persistent store it only returns nil or fails.
In the Intents handler class I have executed a @FetchRequest and then in the logic try to parse the collection. Another example is I've tried @Environment(\.managedObjectContext) var managedObjectContext but entities I try to create don't work. The same code works in the app though.
Any ideas how to do this?
P.S. My app is written in swiftUI!
1
1
1k