I've been looking at the AI generated code and comparing to the code I wrote for the other apps. And I am confused. The AI generated code creates an Item enum and uses the PersistentIdentifier of the PersistentModel, but fetches the PersistentModel array instead of fetching an array of PersistentIdentifiers, which my hand-generated code does. Again, I am confused as to why this works and clears the Sendable warnings.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: