Contents

enums

The definitions for the target app’s app enums.

Declaration

var enums: IntentDefinitions.DefinitionCollection<AppEnumDefinition> { get }

Discussion

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

let definitions = IntentDefinitions(
    bundleIdentifier: "com.apple.example"
)
let coffeeSizeEnum = definitions.enums[
    "CoffeeSizeEnum"
]

See Also

Accessing app enums