---
title: "ComputedProperty(title:description:authenticationPolicy:visibility:customIndexingKey:)"
framework: appintents
role: symbol
role_heading: Macro
platforms: [iOS 27.3+, iPadOS 27.3+, Mac Catalyst 27.3+, macOS 27.3+, visionOS 27.3+]
path: "appintents/computedproperty(title:description:authenticationpolicy:visibility:customindexingkey:)"
---

# ComputedProperty(title:description:authenticationPolicy:visibility:customIndexingKey:)

A macro that adds a computed app entity property with a get accessor and an optional set accessor.

## Declaration

```swift
@attached(peer, names: prefixed(`$`), prefixed(`_`)) @attached(accessor, names: named(get), named(set)) macro ComputedProperty(title: LocalizedStringResource? = nil, description: LocalizedStringResource? = nil, authenticationPolicy: IntentAuthenticationPolicy? = nil, visibility: IntentVisibility? = nil, customIndexingKey: CSCustomAttributeKey)
```

## Parameters

- `title`: A localized string resource describing the property for display in the user interface.
- `description`: Additional details about this property.
- `authenticationPolicy`: The authentication policy to enforce when the system accesses this property, or nil to use the entity’s policy.
- `visibility`: Whether the property is available to system features, or only to your app, or nil for .default.
- `customIndexingKey`: A custom Spotlight attribute set key for this property.

## See Also

### Entity support

- [GenerableEntity](appintents/generableentity.md)
- [AppEntity(_:)](appintents/appentity(_:).md)
- [AppEntity(_:schema:)](appintents/appentity(_:schema:).md)
- [ComputedProperty(title:description:authenticationPolicy:visibility:)](appintents/computedproperty(title:description:authenticationpolicy:visibility:).md)
- [ComputedProperty(title:description:authenticationPolicy:visibility:indexingKey:)](appintents/computedproperty(title:description:authenticationpolicy:visibility:indexingkey:).md)
- [DeferredProperty(title:description:authenticationPolicy:visibility:)](appintents/deferredproperty(title:description:authenticationpolicy:visibility:).md)
- [DeferredProperty(title:description:authenticationPolicy:visibility:indexingKey:)](appintents/deferredproperty(title:description:authenticationpolicy:visibility:indexingkey:).md)
- [AppEntityTraits](appintents/appentitytraits.md)
