<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/EntityProperty/init(identifier:indexingKey:)-8pndc",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents14EntityPropertyCA2A25_IntentValueRepresentable0F4TypeRpzrlE10identifier11indexingKeyACyxGSSYt_s07PartialK4PathCySo28CSSearchableItemAttributeSetCGtcfc"
  },
  "title" : "init(identifier:indexingKey:)"
}
-->

# init(identifier:indexingKey:)

Creates an app intent entity property.  Do not call this directly, use @ComputedProperty or @DeferredProperty

```
convenience init(identifier: String, indexingKey: PartialKeyPath<CSSearchableItemAttributeSet>)
```

## Parameters

`identifier`

The identifier of the property

`indexingKey`

A Spotlight attribute set key mapping for this property.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)