<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/DeferredProperty(title:indexingKey:)",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents16DeferredProperty5title11indexingKeyy10Foundation23LocalizedStringResourceV_s07PartialG4PathCySo28CSSearchableItemAttributeSetCGtcfm"
  },
  "title" : "DeferredProperty(title:indexingKey:)"
}
-->

# DeferredProperty(title:indexingKey:)

A macro that adds an asynchronous app entity property with an asynchronous get accessor.

```
@attached(peer, names: prefixed(`$`), prefixed(`_`)) @attached(accessor, names: named(get), named(set)) macro DeferredProperty(title: LocalizedStringResource, indexingKey: PartialKeyPath<CSSearchableItemAttributeSet>)
```

## Parameters

`title`

A localized string resource describing the property for display in the user interface.

`indexingKey`

A Spotlight attribute set key mapping for this property.

## Example

```swift
struct Restaurant: AppEntity {
    var model: Menu

    @DeferredProperty(title: "Popular Items", indexingKey: \.displayName)
    var popularItems: [MenuItem] {
        get async {
            await model.server.popularMenuItems()
        }
    }
}
```

---

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)