Contents

entities

The definitions for the target app’s app entities.

Declaration

var entities: IntentDefinitions.DefinitionCollection<AppEntityDefinition> { get }

Discussion

Access individual entity definitions using subscript syntax with the entity’s type name as shown in the following example:

let definitions = IntentDefinitions(
    bundleIdentifier: "com.apple.example"
)
let coffeeEntity = definitions.entities[
    "CoffeeEntity"
]

See Also

Accessing app entities and queries