---
title: AppEntityTraits
framework: appintents
role: symbol
role_heading: Structure
platforms: [iOS 27.3+, iPadOS 27.3+, Mac Catalyst 27.3+, macOS 27.3+, visionOS 27.3+]
path: appintents/appentitytraits
---

# AppEntityTraits

The roles an app entity takes on, passed to @AppEntity.

## Declaration

```swift
struct AppEntityTraits
```

## Overview

Overview Pass a single trait, such as .generable, or a list, such as [.generable]. The macro reads the traits as written, so they have to be listed directly rather than computed. A set holds each trait at most once. Traits that take a value are compared by trait alone, so two values of the same trait are the same member.

## Topics

### Type Properties

- [generable](appintents/appentitytraits/generable.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## 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:customIndexingKey:)](appintents/computedproperty(title:description:authenticationpolicy:visibility:customindexingkey:).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)
