Flexibility in adoption AppEntity Schemas

Hi, I have a list of contacts that I store in my app. Can I list all the contacts and their properties into the new Siri by adopting this schema?

@available(iOS 27.0, *)
@AppEntity(schema: .messages.messagePerson)
struct CJPersonAppIndexedEntity: IndexedEntity {
...
}

It's not really part of the 'messages' domain, but is it correct to use?

Also, if I have a concept of a 'task' and 'file' in my app? Can I use the .reminders domain and use .createreminder intent, and mix that 'reminders' and 'files' domains with the 'messages' domain, all in the same app?

Answered by Frameworks Engineer in 891875022

Yes, mixing domains in a single app is not a misuse of the API. I'd just remember to adopt Transferable in order for entities to cross application and domain boundaries.

Yes, mixing domains in a single app is not a misuse of the API. I'd just remember to adopt Transferable in order for entities to cross application and domain boundaries.

Flexibility in adoption AppEntity Schemas
 
 
Q