---
title: AppIntentTraits
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/appintenttraits
---

# AppIntentTraits

The roles an app intent takes on, passed to @AppIntent.

## Declaration

```swift
struct AppIntentTraits
```

## Overview

Overview Pass a single trait, such as .tool, or a list, such as [.tool]. 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

- [tool](appintents/appintenttraits/tool.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

### Tool support

- [AppIntent(_:)](appintents/appintent(_:).md)
- [AppIntent(_:schema:)](appintents/appintent(_:schema:).md)
- [IntentVisibility](appintents/intentvisibility.md)
- [ToolIntent](appintents/toolintent.md)
