---
title: "DeferredProperty(title:)"
framework: appintents
role: symbol
role_heading: Macro
path: "appintents/deferredproperty(title:)"
---

# DeferredProperty(title:)

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

## Declaration

```swift
@attached(peer, names: prefixed(`$`), prefixed(`_`)) @attached(accessor, names: named(get), named(set)) macro DeferredProperty(title: LocalizedStringResource)
```

## Parameters

- `title`: A localized string resource describing the property for display in the user interface.

## Overview

Overview A deferred property has a few trade-offs: The system doesn’t index it when you donate an IndexedEntity to a Spotlight index. The system doesn’t send it to Shortcuts or Siri automatically; it fetches the value only when needed. Example struct Restaurant: AppEntity {     var model: Menu

@DeferredProperty     var popularItems: [MenuItem] {         get async {             await model.server.popularMenuItems()         }     } }

## See Also

### Property declarations

- [ComputedProperty()](appintents/computedproperty().md)
- [ComputedProperty(title:)](appintents/computedproperty(title:).md)
- [ComputedProperty(indexingKey:)](appintents/computedproperty(indexingkey:).md)
- [ComputedProperty(customIndexingKey:)](appintents/computedproperty(customindexingkey:).md)
- [ComputedProperty(title:customIndexingKey:)](appintents/computedproperty(title:customindexingkey:).md)
- [ComputedProperty(title:indexingKey:)](appintents/computedproperty(title:indexingkey:).md)
- [DeferredProperty()](appintents/deferredproperty().md)
- [DeferredProperty(indexingKey:)](appintents/deferredproperty(indexingkey:).md)
- [DeferredProperty(title:indexingKey:)](appintents/deferredproperty(title:indexingkey:).md)
- [EntityProperty](appintents/entityproperty.md)
- [EntityPropertyModifiers](appintents/entitypropertymodifiers.md)
- [Property comparators](appintents/property-comparators.md)
